##// END OF EJS Templates
check-code: drop ban on callable() which was restored in Python 3.2...
Augie Fackler -
r21791:fb16f6da default
parent child Browse files
Show More
@@ -247,8 +247,6 b' pypats = ['
247 (r'^\s*os\.path\.relpath', "relpath not available in Python 2.4"),
247 (r'^\s*os\.path\.relpath', "relpath not available in Python 2.4"),
248 (r'(?<!def)\s+(any|all|format)\(',
248 (r'(?<!def)\s+(any|all|format)\(',
249 "any/all/format not available in Python 2.4", 'no-py24'),
249 "any/all/format not available in Python 2.4", 'no-py24'),
250 (r'(?<!def)\s+(callable)\(',
251 "callable not available in Python 3, use getattr(f, '__call__', None)"),
252 (r'if\s.*\selse', "if ... else form not available in Python 2.4"),
250 (r'if\s.*\selse', "if ... else form not available in Python 2.4"),
253 (r'^\s*(%s)\s\s' % '|'.join(keyword.kwlist),
251 (r'^\s*(%s)\s\s' % '|'.join(keyword.kwlist),
254 "gratuitous whitespace after Python keyword"),
252 "gratuitous whitespace after Python keyword"),
General Comments 0
You need to be logged in to leave comments. Login now