From: Hynek Schlawack Date: Sun, 24 Jun 2012 14:11:08 +0000 (+0200) Subject: Fix doc of os.fwalk: example used now non-existing os.fstatat() X-Git-Tag: v3.3.0b1~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1729b8f45beeb57f2fdc85fae64a44cddda2f725;p=thirdparty%2FPython%2Fcpython.git Fix doc of os.fwalk: example used now non-existing os.fstatat() --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index d0e2532f66a6..f38b15225031 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -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: