##// END OF EJS Templates
check-code: add test for callable
Martin Geisler -
r11522:eaa7666a stable
parent child Browse files
Show More
@@ -94,6 +94,8 b' pypats = ['
94 94 (r'^\s*with\s+', "with not available in Python 2.4"),
95 95 (r'(?<!def)\s+(any|all|format)\(',
96 96 "any/all/format not available in Python 2.4"),
97 (r'(?<!def)\s+(callable)\(',
98 "callable not available in Python 3, use hasattr(f, '__call__')"),
97 99 (r'if\s.*\selse', "if ... else form not available in Python 2.4"),
98 100 (r'([\(\[]\s\S)|(\S\s[\)\]])', "gratuitous whitespace in () or []"),
99 101 # (r'\s\s=', "gratuitous whitespace before ="),
General Comments 0
You need to be logged in to leave comments. Login now