diff options
author | Georg Brandl <georg@python.org> | 2011-08-01 20:58:53 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-08-01 20:58:53 (GMT) |
commit | 93d3a8d67ca6818a59b6e20afe2e98d75125f4f7 (patch) | |
tree | d9de272d5411cbe58d15b84e9622b49ee36b4132 /Doc | |
parent | 0db7f72cc74baeefaab647cd8f627a0d31becf16 (diff) | |
download | cpython-93d3a8d67ca6818a59b6e20afe2e98d75125f4f7.zip cpython-93d3a8d67ca6818a59b6e20afe2e98d75125f4f7.tar.gz cpython-93d3a8d67ca6818a59b6e20afe2e98d75125f4f7.tar.bz2 |
Use attribute access instead of index access for namedtuple.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/stat.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ Example:: 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) |