summaryrefslogtreecommitdiff
path: root/pkg_resources.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-06-14 12:01:31 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-06-14 12:01:31 -0400
commit01ed6474fac4b74544f1c3f44854fa4a6b251e85 (patch)
tree18a08ab2ce781216f30c515180b4001f26d36cf7 /pkg_resources.py
parente09c084b8960d7d71ae46befa520184cea34b950 (diff)
downloadpython-setuptools-bitbucket-01ed6474fac4b74544f1c3f44854fa4a6b251e85.tar.gz
Implement 'build_manifest' as a classmethod. Rename to 'build' because Manifests is already in the classname.
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg_resources.py b/pkg_resources.py
index 42153d36..d12e9353 100644
--- a/pkg_resources.py
+++ b/pkg_resources.py
@@ -1543,12 +1543,13 @@ class ZipManifests(dict):
stat = os.stat(path)
if path not in self or self[path][0] != stat.st_mtime:
- self[path] = (stat.st_mtime, self.build_manifest(path))
+ self[path] = (stat.st_mtime, self.build(path))
return self[path][1]
__call__ = load
- def build_manifest(self, path):
+ @classmethod
+ def build(cls, path):
"""
This builds a similar dictionary to the zipimport directory
caches. However instead of tuples, ZipInfo objects are stored.