diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-07-05 11:24:39 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-07-05 11:24:39 -0400 |
| commit | 3d4c4bbbf7718c75511ccb24c5645f5cafae7dd0 (patch) | |
| tree | fe81d822f93895f38329041586cdbdaa3977e6d2 /pkg_resources.py | |
| parent | 162049436cd70ae4e7235446102a58ffd2becc3b (diff) | |
| download | python-setuptools-bitbucket-3d4c4bbbf7718c75511ccb24c5645f5cafae7dd0.tar.gz | |
Create zip_manifests as a class attribute rather than a global
Diffstat (limited to 'pkg_resources.py')
| -rw-r--r-- | pkg_resources.py | 4 |
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: |
