Mercurial > hg
changeset 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 | b966e35aad78 |
children | c407583cf5f6 |
files | mercurial/demandimport.py |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/demandimport.py Mon Feb 22 23:36:04 2016 +0100 +++ b/mercurial/demandimport.py Thu Feb 25 22:35:11 2016 -0800 @@ -230,6 +230,8 @@ ignore = [ '__future__', '_hashlib', + # ImportError during pkg_resources/__init__.py:fixup_namespace_package + '_imp', '_xmlplus', 'fcntl', 'win32com.gen_py',