diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-14 12:01:31 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-14 12:01:31 -0400 |
commit | dfcbd73ce9160ae691910e088ae9013b22a4a78e (patch) | |
tree | fc98a80520a071762fec2b65b6b0307029c87363 /pkg_resources.py | |
parent | 9348f13b70fee8de254c8898d2a7840c4286eac1 (diff) | |
download | external_python_setuptools-dfcbd73ce9160ae691910e088ae9013b22a4a78e.tar.gz external_python_setuptools-dfcbd73ce9160ae691910e088ae9013b22a4a78e.tar.bz2 external_python_setuptools-dfcbd73ce9160ae691910e088ae9013b22a4a78e.zip |
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.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. |