From 8e4997390ccb92f889ac709c9a45e589472bdee2 Mon Sep 17 00:00:00 2001
From: "Gregory P. Smith" <greg@mad-scientist.com>
Date: Tue, 6 May 2008 07:05:18 +0000
Subject: fix issue2707 - os.walk docstring example correctness typo.

---
 Lib/os.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Lib/os.py b/Lib/os.py
index 890303f..6dc4bf3 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -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"
-- 
cgit v0.12

