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