Comments
Patch
@@ -226,7 +226,7 @@
(r'^\s*except.* as .*:', "except as not available in Python 2.4"),
(r'^\s*os\.path\.relpath', "relpath not available in Python 2.4"),
(r'(?<!def)\s+(any|all|format)\(',
- "any/all/format not available in Python 2.4"),
+ "any/all/format not available in Python 2.4", 'no-py24'),
(r'(?<!def)\s+(callable)\(',
"callable not available in Python 3, use getattr(f, '__call__', None)"),
(r'if\s.*\selse', "if ... else form not available in Python 2.4"),
@@ -75,7 +75,7 @@
# something in stdlib_prefixes. check-code suppressed because
# the ast module used by this script implies the availability
# of any().
- if not any(libpath.startswith(p) for p in stdlib_prefixes): # no-check-code
+ if not any(libpath.startswith(p) for p in stdlib_prefixes): # no-py24
continue
if 'site-packages' in libpath:
continue