From: Georg Brandl Date: Mon, 1 Aug 2011 20:58:53 +0000 (+0200) Subject: Use attribute access instead of index access for namedtuple. X-Git-Tag: v3.2.2rc1~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aa71583f09a39becfb3df55dc440820f33925029;p=python Use attribute access instead of index access for namedtuple. --- 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)