Show More
@@ -192,11 +192,10 b' def list_stdlib_modules():' | |||||
192 | # of any(). |
|
192 | # of any(). | |
193 | if not any(libpath.startswith(p) for p in stdlib_prefixes): # no-py24 |
|
193 | if not any(libpath.startswith(p) for p in stdlib_prefixes): # no-py24 | |
194 | continue |
|
194 | continue | |
195 | if 'site-packages' in libpath: |
|
|||
196 | continue |
|
|||
197 | for top, dirs, files in os.walk(libpath): |
|
195 | for top, dirs, files in os.walk(libpath): | |
198 | for i, d in reversed(list(enumerate(dirs))): |
|
196 | for i, d in reversed(list(enumerate(dirs))): | |
199 |
if not os.path.exists(os.path.join(top, d, '__init__.py')) |
|
197 | if (not os.path.exists(os.path.join(top, d, '__init__.py')) | |
|
198 | or top == libpath and d in ('hgext', 'mercurial')): | |||
200 | del dirs[i] |
|
199 | del dirs[i] | |
201 | for name in files: |
|
200 | for name in files: | |
202 | if name == '__init__.py': |
|
201 | if name == '__init__.py': |
General Comments 0
You need to be logged in to leave comments.
Login now