From 7b7c55a2353dc5af925174e585bfa3d2200343f0 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 14 Jun 2014 12:22:53 -0400 Subject: Stat is never reused --- pkg_resources.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg_resources.py') 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] -- cgit v1.2.1