Show More
@@ -225,7 +225,7 b' pypats = [' | |||
|
225 | 225 | (r'^\s*except.* as .*:', "except as not available in Python 2.4"), |
|
226 | 226 | (r'^\s*os\.path\.relpath', "relpath not available in Python 2.4"), |
|
227 | 227 | (r'(?<!def)\s+(any|all|format)\(', |
|
228 | "any/all/format not available in Python 2.4"), | |
|
228 | "any/all/format not available in Python 2.4", 'no-py24'), | |
|
229 | 229 | (r'(?<!def)\s+(callable)\(', |
|
230 | 230 | "callable not available in Python 3, use getattr(f, '__call__', None)"), |
|
231 | 231 | (r'if\s.*\selse', "if ... else form not available in Python 2.4"), |
@@ -75,7 +75,7 b' def list_stdlib_modules():' | |||
|
75 | 75 | # something in stdlib_prefixes. check-code suppressed because |
|
76 | 76 | # the ast module used by this script implies the availability |
|
77 | 77 | # of any(). |
|
78 |
if not any(libpath.startswith(p) for p in stdlib_prefixes): # no- |
|
|
78 | if not any(libpath.startswith(p) for p in stdlib_prefixes): # no-py24 | |
|
79 | 79 | continue |
|
80 | 80 | if 'site-packages' in libpath: |
|
81 | 81 | continue |
General Comments 0
You need to be logged in to leave comments.
Login now