diff options
Diffstat (limited to 'Lib/dircache.py')
-rw-r--r-- | Lib/dircache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dircache.py b/Lib/dircache.py index be2f314..e18c7c3 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: |