[Python-checkins] r62756 - python/trunk/Lib/os.py
gregory.p.smith
python-checkins at python.org
Tue May 6 09:05:18 CEST 2008
Author: gregory.p.smith
Date: Tue May 6 09:05:18 2008
New Revision: 62756
Log:
fix issue2707 - os.walk docstring example correctness typo.
Modified:
python/trunk/Lib/os.py
Modified: python/trunk/Lib/os.py
==============================================================================
--- python/trunk/Lib/os.py (original)
+++ python/trunk/Lib/os.py Tue May 6 09:05:18 2008
@@ -267,8 +267,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"
More information about the Python-checkins
mailing list