Commit c5958f26 authored by Jason R. Coombs's avatar Jason R. Coombs

Also remove mysterious hack from pkg_resources.extern

parent 2d25ca89
...@@ -43,13 +43,6 @@ class VendorImporter: ...@@ -43,13 +43,6 @@ class VendorImporter:
__import__(extant) __import__(extant)
mod = sys.modules[extant] mod = sys.modules[extant]
sys.modules[fullname] = mod sys.modules[fullname] = mod
# mysterious hack:
# Remove the reference to the extant package/module
# on later Python versions to cause relative imports
# in the vendor package to resolve the same modules
# as those going through this importer.
if prefix and sys.version_info > (3, 3):
del sys.modules[extant]
return mod return mod
except ImportError: except ImportError:
pass pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment