diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-14 12:22:53 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-14 12:22:53 -0400 |
commit | 7b7c55a2353dc5af925174e585bfa3d2200343f0 (patch) | |
tree | 2613d463d1e832e5483957bc91b37714d76f7fb2 /pkg_resources.py | |
parent | 8b16c25b199767f86350fff7dfff877fd38ed48c (diff) | |
download | external_python_setuptools-7b7c55a2353dc5af925174e585bfa3d2200343f0.tar.gz external_python_setuptools-7b7c55a2353dc5af925174e585bfa3d2200343f0.tar.bz2 external_python_setuptools-7b7c55a2353dc5af925174e585bfa3d2200343f0.zip |
Stat is never reused
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] |