Show More
@@ -71,9 +71,11 b' def list_stdlib_modules():' | |||||
71 | else: |
|
71 | else: | |
72 | stdlib_prefixes.add(dirname) |
|
72 | stdlib_prefixes.add(dirname) | |
73 | for libpath in sys.path: |
|
73 | for libpath in sys.path: | |
74 |
# We want to walk everything in sys.path that starts with |
|
74 | # We want to walk everything in sys.path that starts with | |
75 | # in stdlib_prefixes. |
|
75 | # something in stdlib_prefixes. check-code suppressed because | |
76 | if not any(libpath.startswith(p) for p in stdlib_prefixes): |
|
76 | # the ast module used by this script implies the availability | |
|
77 | # of any(). | |||
|
78 | if not any(libpath.startswith(p) for p in stdlib_prefixes): # no-check-code | |||
77 | continue |
|
79 | continue | |
78 | if 'site-packages' in libpath: |
|
80 | if 'site-packages' in libpath: | |
79 | continue |
|
81 | continue |
General Comments 0
You need to be logged in to leave comments.
Login now