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

This commit is contained in:
Hynek Schlawack 2012-06-24 16:11:08 +02:00
parent ae64b4d8e2
commit 1729b8f45b
1 changed files with 1 additions and 1 deletions

View File

@ -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: