aboutsummaryrefslogtreecommitdiffstats
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
commit8b16c25b199767f86350fff7dfff877fd38ed48c (patch)
tree6b5dac7657c45f87fb711e26a55ce8fe7a3d5f2f /pkg_resources.py
parent2e35b91ed2d5b6dc5be9d92e485a9915da4b83f9 (diff)
downloadexternal_python_setuptools-8b16c25b199767f86350fff7dfff877fd38ed48c.tar.gz
external_python_setuptools-8b16c25b199767f86350fff7dfff877fd38ed48c.tar.bz2
external_python_setuptools-8b16c25b199767f86350fff7dfff877fd38ed48c.zip
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: