]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove another reference to stat.ST_MODE
authorNeal Norwitz <nnorwitz@gmail.com>
Thu, 6 Jun 2002 18:16:14 +0000 (18:16 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Thu, 6 Jun 2002 18:16:14 +0000 (18:16 +0000)
Lib/posixpath.py

index 1f84a431385d6c2464d5d0a598468a6d0e7cb82a..6c66689b6b1d96eba9f853f76bccdef6c466c0c7 100644 (file)
@@ -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)