Commit dfcbd73c authored by Jason R. Coombs's avatar Jason R. Coombs

Implement 'build_manifest' as a classmethod. Rename to 'build' because...

Implement 'build_manifest' as a classmethod. Rename to 'build' because Manifests is already in the classname.
parent 9348f13b
......@@ -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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment