Patchwork D6978: contrib: black manages whitespace after Python keywords now

login
register
mail settings
Submitter phabricator
Date Oct. 5, 2019, 3:01 p.m.
Message ID <differential-rev-PHID-DREV-34qip2hfmzrngzgjnycp-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41979/
State Superseded
Headers show

Comments

phabricator - Oct. 5, 2019, 3:01 p.m.
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  contrib/check-code.py

CHANGE DETAILS




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

Patch

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',