D6978: contrib: black manages whitespace after Python keywords now

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Sun Oct 6 09:55:18 EDT 2019


Closed by commit rHG28002d25eb54: contrib: black manages whitespace after Python keywords now (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6978?vs=16827&id=16873

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D6978/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D6978

AFFECTED FILES
  contrib/check-code.py

CHANGE DETAILS

diff --git a/contrib/check-code.py b/contrib/check-code.py
--- a/contrib/check-code.py
+++ b/contrib/check-code.py
@@ -286,8 +286,6 @@
 #    (r'^\s*print\s+', "avoid using print in core and extensions"),
     (r'[\x80-\xff]', "non-ASCII character literal"),
     (r'("\')\.format\(', "str.format() has no bytes counterpart, use %"),
-    (r'^\s*(%s)\s\s' % '|'.join(keyword.kwlist),
-     "gratuitous whitespace after Python keyword"),
     (r'([\(\[][ \t]\S)|(\S[ \t][\)\]])', "gratuitous whitespace in () or []"),
 #    (r'\s\s=', "gratuitous whitespace before ="),
     (r'[^>< ](\+=|-=|!=|<>|<=|>=|<<=|>>=|%=)\S',



To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel


More information about the Mercurial-devel mailing list