Commit 8ef8b53e authored by Jason R. Coombs's avatar Jason R. Coombs

Create zip_manifests as a class attribute rather than a global

--HG--
extra : amend_source : 7754d23956c4157235dca41e90f05c29691078ee
parent 7a5642d5
......@@ -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:
......
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