commit | 93d3a8d67ca6818a59b6e20afe2e98d75125f4f7 | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Mon Aug 01 22:58:53 2011 +0200 |
committer | Georg Brandl <georg@python.org> | Mon Aug 01 22:58:53 2011 +0200 |
tree | d9de272d5411cbe58d15b84e9622b49ee36b4132 | |
parent | 0db7f72cc74baeefaab647cd8f627a0d31becf16 [diff] [blame] |
Use attribute access instead of index access for namedtuple.
diff --git a/Doc/library/stat.rst b/Doc/library/stat.rst index c9c399e..a62d9da 100644 --- a/Doc/library/stat.rst +++ b/Doc/library/stat.rst
@@ -84,7 +84,7 @@ for f in os.listdir(top): pathname = os.path.join(top, f) - mode = os.stat(pathname)[ST_MODE] + mode = os.stat(pathname).st_mode if S_ISDIR(mode): # It's a directory, recurse into it walktree(pathname, callback)