diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-01-02 15:15:47 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-01-02 15:15:47 -0500 |
| commit | a76f5c03136f0c69e8c366bf4069ec8d89d85da7 (patch) | |
| tree | 1143faa0a65fbc1d2006952822ab95b24f391024 /setuptools/extern/__init__.py | |
| parent | de5caaee3c9a23600b96f512ed2054b4e27357a8 (diff) | |
| download | python-setuptools-git-a76f5c03136f0c69e8c366bf4069ec8d89d85da7.tar.gz | |
Pop the module off the stack, preventing the 'Version' class from having a different manifestation in packaging than in pkg_resources.
--HG--
branch : feature/issue-229
Diffstat (limited to 'setuptools/extern/__init__.py')
| -rw-r--r-- | setuptools/extern/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/setuptools/extern/__init__.py b/setuptools/extern/__init__.py index 1329285c..e1400238 100644 --- a/setuptools/extern/__init__.py +++ b/setuptools/extern/__init__.py @@ -28,8 +28,7 @@ class VendorImporter: for prefix in self.search_path: try: __import__(prefix + target) - mod = sys.modules[prefix + target] - sys.modules[fullname] = mod + mod = sys.modules[fullname] = sys.modules.pop(prefix + target) return mod except ImportError: pass |
