summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-08-01 22:59:40 +0200
committerGeorg Brandl <georg@python.org>2011-08-01 22:59:40 +0200
commitb0fa4b843324ddebce03f13aa27021ed3d03332d (patch)
treef0e299bf58595f6d25396635d5d736c68f551384
parenteec1ed81192e856ada3fab4d13aaea7d7a581f0a (diff)
parentaa71583f09a39becfb3df55dc440820f33925029 (diff)
downloadcpython-git-b0fa4b843324ddebce03f13aa27021ed3d03332d.tar.gz
Merge with 3.2
-rw-r--r--Doc/library/stat.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/stat.rst b/Doc/library/stat.rst
index 4f79689207..7de98b6581 100644
--- a/Doc/library/stat.rst
+++ b/Doc/library/stat.rst
@@ -87,7 +87,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)