Show More
@@ -244,7 +244,8 b' def list_stdlib_modules():' | |||||
244 | for top, dirs, files in os.walk(libpath): |
|
244 | for top, dirs, files in os.walk(libpath): | |
245 | for i, d in reversed(list(enumerate(dirs))): |
|
245 | for i, d in reversed(list(enumerate(dirs))): | |
246 | if (not os.path.exists(os.path.join(top, d, '__init__.py')) |
|
246 | if (not os.path.exists(os.path.join(top, d, '__init__.py')) | |
247 |
or top == libpath and d in ('hg |
|
247 | or top == libpath and d in ('hgdemandimport', 'hgext', | |
|
248 | 'mercurial')): | |||
248 | del dirs[i] |
|
249 | del dirs[i] | |
249 | for name in files: |
|
250 | for name in files: | |
250 | if not name.endswith(('.py', '.so', '.pyc', '.pyo', '.pyd')): |
|
251 | if not name.endswith(('.py', '.so', '.pyc', '.pyo', '.pyd')): |
General Comments 0
You need to be logged in to leave comments.
Login now