summaryrefslogtreecommitdiff
path: root/pkg_resources.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-06-14 12:14:13 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-06-14 12:14:13 -0400
commit8a637b8c7170f4e2a3cc760d8b58024538727e8f (patch)
treec44255a455f352cf1be118798fc86882bfde4852 /pkg_resources.py
parent8769e221d5745a22c7c8061a5b96d7cb0b51fc1e (diff)
downloadpython-setuptools-bitbucket-8a637b8c7170f4e2a3cc760d8b58024538727e8f.tar.gz
Use a more appropriate name and invoke .load directly.
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index d124cb9a..e88f0d8b 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -1546,7 +1546,6 @@ class ZipManifests(dict):
self[path] = (stat.st_mtime, self.build(path))
return self[path][1]
- __call__ = load
@classmethod
def build(cls, path):
@@ -1566,7 +1565,7 @@ class ZipManifests(dict):
for name in zfile.namelist()
)
return dict(items)
-build_zipmanifest = ZipManifests()
+zip_manifests = ZipManifests()
class ContextualZipFile(zipfile.ZipFile):
@@ -1618,7 +1617,7 @@ class ZipProvider(EggProvider):
@property
def zipinfo(self):
- return build_zipmanifest(self.loader.archive) # memoized
+ return zip_manifests.load(self.loader.archive)
def get_resource_filename(self, manager, resource_name):
if not self.egg_name: