diff options
Diffstat (limited to 'pkg_resources.py')
| -rw-r--r-- | pkg_resources.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index e88f0d8b..1100978a 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -1540,10 +1540,10 @@ class ZipManifests(dict): Load a manifest at path or return a suitable manifest already loaded. """ path = os.path.normpath(path) - stat = os.stat(path) + mtime = os.stat(path).st_mtime - if path not in self or self[path][0] != stat.st_mtime: - self[path] = (stat.st_mtime, self.build(path)) + if path not in self or self[path][0] != mtime: + self[path] = (mtime, self.build(path)) return self[path][1] |
