Commit 139e37cd authored by Tim Peters's avatar Tim Peters

Merge rev 27704 from ZODB trunk.

os.listdir() now prints errors on stdout
parent 57b494f9
......@@ -448,7 +448,8 @@ def walk_with_symlinks(top, func, arg):
"""
try:
names = os.listdir(top)
except os.error:
except os.error, why:
print "Error listing %r: %s" % (top, why)
return
func(arg, top, names)
exceptions = ('.', '..')
......
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