diff options
| author | Dan Rose <dan@digilabs.io> | 2019-10-27 02:31:59 -0500 |
|---|---|---|
| committer | Dan Rose <dan@digilabs.io> | 2019-10-27 02:59:55 -0500 |
| commit | 2d25ca89318922e63b74c37e36d099173cf0da5a (patch) | |
| tree | 4f96a50932b122eade8fcee76197b82de6e56858 /setuptools/extern | |
| parent | 297f2adceda3af402fc08311e42505c8cdc9c54b (diff) | |
| download | python-setuptools-git-2d25ca89318922e63b74c37e36d099173cf0da5a.tar.gz | |
Remove sys.modules hack
Fix #1888 (metadata accidentally not picklable), and removes a case where reimporting a vendored module results in a second copy of the same module.
Diffstat (limited to 'setuptools/extern')
| -rw-r--r-- | setuptools/extern/__init__.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/setuptools/extern/__init__.py b/setuptools/extern/__init__.py index e8c616f9..4e79aa17 100644 --- a/setuptools/extern/__init__.py +++ b/setuptools/extern/__init__.py @@ -43,13 +43,6 @@ class VendorImporter: __import__(extant) mod = sys.modules[extant] 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 sys.version_info >= (3, ): - del sys.modules[extant] return mod except ImportError: pass |
