Commit 8e499739 authored by Gregory P. Smith's avatar Gregory P. Smith

fix issue2707 - os.walk docstring example correctness typo.

parent e3dcb01b
......@@ -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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment