summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 82b4027..97334f8 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -251,8 +251,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"