changeset 43062:28002d25eb54

contrib: black manages whitespace after Python keywords now Differential Revision: https://phab.mercurial-scm.org/D6978
author Augie Fackler <augie@google.com>
date Sat, 05 Oct 2019 10:48:10 -0400
parents b61324854e93
children 9bfd083bc6ee
files contrib/check-code.py
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Sat Oct 05 10:47:28 2019 -0400
+++ b/contrib/check-code.py	Sat Oct 05 10:48:10 2019 -0400
@@ -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',