From dfcbd73ce9160ae691910e088ae9013b22a4a78e Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 14 Jun 2014 12:01:31 -0400 Subject: Implement 'build_manifest' as a classmethod. Rename to 'build' because Manifests is already in the classname. --- pkg_resources.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg_resources.py') 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. -- cgit v1.2.3