Commits

Georg Brandl committed 5acd6ca

Use attribute access instead of index access for namedtuple.

  • Participants
  • Parent commits 8065f92
  • Branches 2.7

Comments (0)

Files changed (1)

Doc/library/stat.rst

 
        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)