From c0b1bb6d1e60ccf5bb996982376f67f2a167b8d4 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sat, 1 Jun 2002 19:51:15 +0000 Subject: Replaced obsolete stat module constants with equivalent attributes --- Lib/dircache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/dircache.py') 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: -- cgit v1.2.1