mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Use attribute access instead of index access for namedtuple.
This commit is contained in:
parent
0db7f72cc7
commit
93d3a8d67c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue