diff options
author | Gregory P. Smith <greg@mad-scientist.com> | 2008-05-06 07:05:18 (GMT) |
---|---|---|
committer | Gregory P. Smith <greg@mad-scientist.com> | 2008-05-06 07:05:18 (GMT) |
commit | 8e4997390ccb92f889ac709c9a45e589472bdee2 (patch) | |
tree | 43f10a462bf5f3bb57c1e2281d7cc54deda522bf | |
parent | e3dcb01bfc6bd14da865b0f28c3c9ad8181ab212 (diff) | |
download | cpython-8e4997390ccb92f889ac709c9a45e589472bdee2.zip cpython-8e4997390ccb92f889ac709c9a45e589472bdee2.tar.gz cpython-8e4997390ccb92f889ac709c9a45e589472bdee2.tar.bz2 |
fix issue2707 - os.walk docstring example correctness typo.
-rw-r--r-- | Lib/os.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -267,8 +267,9 @@ def walk(top, topdown=True, onerror=None, followlinks=False): 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" |