summaryrefslogtreecommitdiffstats
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r--Lib/posixpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index 1f84a43..6c66689 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -280,7 +280,7 @@ def walk(top, func, arg):
st = os.lstat(name)
except os.error:
continue
- if stat.S_ISDIR(st[stat.ST_MODE]):
+ if stat.S_ISDIR(st.st_mode):
walk(name, func, arg)