Commit 1729b8f4 authored by Hynek Schlawack's avatar Hynek Schlawack

Fix doc of os.fwalk: example used now non-existing os.fstatat()

parent ae64b4d8
......@@ -2252,7 +2252,7 @@ features:
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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment