[Python-checkins] cpython: Fix doc of os.fwalk: example used now non-existing os.fstatat()
hynek.schlawack
python-checkins at python.org
Sun Jun 24 16:13:16 CEST 2012
http://hg.python.org/cpython/rev/a30418cddee4
changeset: 77713:a30418cddee4
user: Hynek Schlawack <hs at ox.cx>
date: Sun Jun 24 16:11:08 2012 +0200
summary:
Fix doc of os.fwalk: example used now non-existing os.fstatat()
files:
Doc/library/os.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/os.rst b/Doc/library/os.rst
--- a/Doc/library/os.rst
+++ b/Doc/library/os.rst
@@ -2252,7 +2252,7 @@
import os
for root, dirs, files, rootfd in os.fwalk('python/Lib/email'):
print(root, "consumes", end="")
- print(sum([os.fstatat(rootfd, name).st_size for name in files]),
+ print(sum([os.stat(name, dir_fd=rootfd).st_size for name in files]),
end="")
print("bytes in", len(files), "non-directory files")
if 'CVS' in dirs:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list