Mercurial > hg
comparison mercurial/demandimport.py @ 30021:16a09ae318b4
demandimport: add 'nt' to ignore list (issue5373)
pathlib2 tries to import nt. Since it is a built-in module, there should be
no performance penalty.
https://github.com/mcmtroffaes/pathlib2/blob/release/2.2.0/pathlib2.py#L33
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 27 Sep 2016 21:56:00 +0900 |
parents | bf94fe556f16 |
children | 26a4e46af2bc |
comparison
equal
deleted
inserted
replaced
30020:bf94fe556f16 | 30021:16a09ae318b4 |
---|---|
262 '_hashlib', | 262 '_hashlib', |
263 # ImportError during pkg_resources/__init__.py:fixup_namespace_package | 263 # ImportError during pkg_resources/__init__.py:fixup_namespace_package |
264 '_imp', | 264 '_imp', |
265 '_xmlplus', | 265 '_xmlplus', |
266 'fcntl', | 266 'fcntl', |
267 'nt', # pathlib2 tests the existence of built-in 'nt' module | |
267 'win32com.gen_py', | 268 'win32com.gen_py', |
268 '_winreg', # 2.7 mimetypes needs immediate ImportError | 269 '_winreg', # 2.7 mimetypes needs immediate ImportError |
269 'pythoncom', | 270 'pythoncom', |
270 # imported by tarfile, not available under Windows | 271 # imported by tarfile, not available under Windows |
271 'pwd', | 272 'pwd', |