commit | fbc190af4f1d993c1cdfb3c805c1ead2378f87e0 | [log] [tgz] |
---|---|---|
author | Gregory P. Smith <greg@mad-scientist.com> | Tue May 06 07:06:44 2008 +0000 |
committer | Gregory P. Smith <greg@mad-scientist.com> | Tue May 06 07:06:44 2008 +0000 |
tree | f4d6d92b42a539f38f804a6058f2c2e46a14bb4f | |
parent | 9e6649f8ee278d0528cb76462b91ee29ee68af19 [diff] [blame] |
Fix os.walk docstring example - issue2707
diff --git a/Lib/os.py b/Lib/os.py index a36a6c8..cf6fe6f 100644 --- a/Lib/os.py +++ b/Lib/os.py
@@ -263,8 +263,9 @@ Example: + import os from os.path import join, getsize - for root, dirs, files in walk('python/Lib/email'): + for root, dirs, files in os.walk('python/Lib/email'): print root, "consumes", print sum([getsize(join(root, name)) for name in files]), print "bytes in", len(files), "non-directory files"