summaryrefslogtreecommitdiff
path: root/Lib/dircache.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-01 19:51:15 +0000
committerRaymond Hettinger <python@rcn.com>2002-06-01 19:51:15 +0000
commitc0b1bb6d1e60ccf5bb996982376f67f2a167b8d4 (patch)
tree19fbeeda95c0f7d860f26a2a34becdc38ea39971 /Lib/dircache.py
parente3a032af65863e1dcfa567e5bd597206852285fa (diff)
downloadcpython-c0b1bb6d1e60ccf5bb996982376f67f2a167b8d4.tar.gz
Replaced obsolete stat module constants with equivalent attributes
Diffstat (limited to 'Lib/dircache.py')
-rw-r--r--Lib/dircache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dircache.py b/Lib/dircache.py
index be2f314cb5..e18c7c37a4 100644
--- a/Lib/dircache.py
+++ b/Lib/dircache.py
@@ -23,7 +23,7 @@ def listdir(path):
except KeyError:
cached_mtime, list = -1, []
try:
- mtime = os.stat(path)[8]
+ mtime = os.stat(path).st_mtime
except os.error:
return []
if mtime != cached_mtime: