summaryrefslogtreecommitdiff
path: root/Lib/statcache.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/statcache.py')
-rw-r--r--Lib/statcache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/statcache.py b/Lib/statcache.py
index 551069bbe6..d478393804 100644
--- a/Lib/statcache.py
+++ b/Lib/statcache.py
@@ -79,4 +79,4 @@ def isdir(path):
st = stat(path)
except _os.error:
return False
- return S_ISDIR(st[ST_MODE])
+ return S_ISDIR(st.st_mode)