[1/1] cachedpath.py: global name 'error' is not defined
Submitted by Robert Yang on May 13, 2013, 8:34 a.m.
Patch ID: 49835
@@ -122,10 +122,8 @@ class CachedPath(object):
# minor reason when (say) a thousand readable directories are still
# left to visit. That logic is copied here.
- # Note that listdir and error are globals in this module due
- # to earlier import-*.
names = os.listdir(top)
- except error as err:
+ except os.error as err:
if onerror is not None: