aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-07-05 11:24:39 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-07-05 11:24:39 -0400
commit8ef8b53e1dc4563c63ddd2ae009bea42fe97f522 (patch)
tree3c62313beff71e141e8e01e0c1b4c2b926026380 /pkg_resources.py
parent7a5642d5f7bd839cd0b38fd59ab5fb61b6f42e0f (diff)
downloadexternal_python_setuptools-8ef8b53e1dc4563c63ddd2ae009bea42fe97f522.tar.gz
external_python_setuptools-8ef8b53e1dc4563c63ddd2ae009bea42fe97f522.tar.bz2
external_python_setuptools-8ef8b53e1dc4563c63ddd2ae009bea42fe97f522.zip
Create zip_manifests as a class attribute rather than a global
--HG-- extra : amend_source : 7754d23956c4157235dca41e90f05c29691078ee
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 2151082b..b2631be7 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -1568,7 +1568,6 @@ class ZipManifests(dict):
for name in zfile.namelist()
)
return dict(items)
-zip_manifests = ZipManifests()
class ContextualZipFile(zipfile.ZipFile):
@@ -1595,6 +1594,7 @@ class ZipProvider(EggProvider):
"""Resource support for zips and eggs"""
eagers = None
+ _zip_manifests = ZipManifests()
def __init__(self, module):
EggProvider.__init__(self, module)
@@ -1620,7 +1620,7 @@ class ZipProvider(EggProvider):
@property
def zipinfo(self):
- return zip_manifests.load(self.loader.archive)
+ return self._zip_manifests.load(self.loader.archive)
def get_resource_filename(self, manager, resource_name):
if not self.egg_name: