--- a/mercurial/help.py Thu Jan 16 13:34:04 2020 +0100
+++ b/mercurial/help.py Mon Feb 10 17:31:05 2020 -0500
@@ -152,6 +152,7 @@
doc = b''.join(rst)
return doc
+
def parsedefaultmarker(text):
"""given a text 'abc (DEFAULT: def.ghi)',
returns (b'abc', (b'def', b'ghi')). Otherwise return None"""
@@ -159,9 +160,10 @@
marker = b' (DEFAULT: '
pos = text.find(marker)
if pos >= 0:
- item = text[pos + len(marker):-1]
+ item = text[pos + len(marker) : -1]
return text[:pos], item.split(b'.', 2)
+
def optrst(header, options, verbose, ui):
data = []
multioccur = False
@@ -734,7 +736,9 @@
if ui.verbose:
rst.append(
- optrst(_(b"global options"), commands.globalopts, ui.verbose, ui)
+ optrst(
+ _(b"global options"), commands.globalopts, ui.verbose, ui
+ )
)
if not ui.verbose:
@@ -874,7 +878,9 @@
elif ui.verbose:
rst.append(
b'\n%s\n'
- % optrst(_(b"global options"), commands.globalopts, ui.verbose, ui)
+ % optrst(
+ _(b"global options"), commands.globalopts, ui.verbose, ui
+ )
)
if name == b'shortlist':
rst.append(