comparison mercurial/demandimport.py @ 28252:f5b2b358b8b7 stable

demandimport: add _imp to ignore list Mozilla is seeing an issue with demand importing of _imp failing in pkg_resources/__init__.py:fixup_namespace_packages. It strangely only reproduces when using a modern version of setuptools/pip in certain scenarios. Adding _imp to the demand import ignore list seems to make the problem go away.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 25 Feb 2016 22:35:11 -0800
parents ffb1ab1e4bba
children c7f89ad87bae
comparison
equal deleted inserted replaced
28222:b966e35aad78 28252:f5b2b358b8b7
228 return mod 228 return mod
229 229
230 ignore = [ 230 ignore = [
231 '__future__', 231 '__future__',
232 '_hashlib', 232 '_hashlib',
233 # ImportError during pkg_resources/__init__.py:fixup_namespace_package
234 '_imp',
233 '_xmlplus', 235 '_xmlplus',
234 'fcntl', 236 'fcntl',
235 'win32com.gen_py', 237 'win32com.gen_py',
236 '_winreg', # 2.7 mimetypes needs immediate ImportError 238 '_winreg', # 2.7 mimetypes needs immediate ImportError
237 'pythoncom', 239 'pythoncom',