Show More
@@ -179,9 +179,6 b' def list_stdlib_modules():' | |||
|
179 | 179 | # consider them stdlib. |
|
180 | 180 | for m in ['msvcrt', '_winreg']: |
|
181 | 181 | yield m |
|
182 | # These get missed too | |
|
183 | for m in 'ctypes', 'email', 'logging', 'multiprocessing': | |
|
184 | yield m | |
|
185 | 182 | yield 'builtins' # python3 only |
|
186 | 183 | for m in 'fcntl', 'grp', 'pwd', 'termios': # Unix only |
|
187 | 184 | yield m |
@@ -214,10 +211,11 b' def list_stdlib_modules():' | |||
|
214 | 211 | or top == libpath and d in ('hgext', 'mercurial')): |
|
215 | 212 | del dirs[i] |
|
216 | 213 | for name in files: |
|
217 | if name == '__init__.py': | |
|
218 | continue | |
|
219 | 214 | if not name.endswith(('.py', '.so', '.pyc', '.pyo', '.pyd')): |
|
220 | 215 | continue |
|
216 | if name.startswith('__init__.py'): | |
|
217 | full_path = top | |
|
218 | else: | |
|
221 | 219 | full_path = os.path.join(top, name) |
|
222 | 220 | rel_path = full_path[len(libpath) + 1:] |
|
223 | 221 | mod = dotted_name_of_path(rel_path) |
General Comments 0
You need to be logged in to leave comments.
Login now