diff mercurial/help.py @ 44349:a0ec05d93c8e

cleanup: re-run black on the codebase Looks like a few patches have landed without having been blackened. I strongly suspect I should write a patch for baymax that blackens things on the way in... # skip-blame automatic formatting Differential Revision: https://phab.mercurial-scm.org/D8104
author Augie Fackler <augie@google.com>
date Mon, 10 Feb 2020 17:31:05 -0500
parents 142d2a4cb69a
children 843418dc0b1b
line wrap: on
line diff
--- 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(