diff options
-rw-r--r-- | pkg_resources.py | 5 |
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. |