Mercurial > public > mercurial-scm > hg-stable
diff contrib/check-code.py @ 25150:d28cc89d92f0
check-code: un-ban __builtins__.all now that we're on 2.6
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 16 May 2015 14:34:04 -0400 |
parents | 3b5cd6f13dcc |
children | ebc41dae840a |
line wrap: on
line diff
--- a/contrib/check-code.py Sat May 16 14:30:07 2015 -0400 +++ b/contrib/check-code.py Sat May 16 14:34:04 2015 -0400 @@ -243,8 +243,8 @@ # (r'^\s*print\s+', "avoid using print in core and extensions"), (r'[\x80-\xff]', "non-ASCII character literal"), (r'("\')\.format\(', "str.format() not available in Python 2.4"), - (r'(?<!def)\s+(all|format)\(', - "all/format not available in Python 2.4", 'no-py24'), + (r'(?<!def)\s+(format)\(', + "format not available in Python 2.4", 'no-py24'), (r'if\s.*\selse', "if ... else form not available in Python 2.4"), (r'^\s*(%s)\s\s' % '|'.join(keyword.kwlist), "gratuitous whitespace after Python keyword"),