Kaydet (Commit) 93d3a8d6 authored tarafından Georg Brandl's avatar Georg Brandl

Use attribute access instead of index access for namedtuple.

üst 0db7f72c
...@@ -84,7 +84,7 @@ Example:: ...@@ -84,7 +84,7 @@ Example::
for f in os.listdir(top): for f in os.listdir(top):
pathname = os.path.join(top, f) pathname = os.path.join(top, f)
mode = os.stat(pathname)[ST_MODE] mode = os.stat(pathname).st_mode
if S_ISDIR(mode): if S_ISDIR(mode):
# It's a directory, recurse into it # It's a directory, recurse into it
walktree(pathname, callback) walktree(pathname, callback)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment