mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 00:39:46 +00:00
cachedpath.py: global name 'error' is not defined
The error is not global since we don't use "from os import *", so it should be os.error. [YOCTO #4489] (From OE-Core rev: ac0e2781c2723257bd380cac170d4c8b97e36747) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
bd27cca7e6
commit
941584f539
@@ -122,10 +122,8 @@ class CachedPath(object):
|
|||||||
# minor reason when (say) a thousand readable directories are still
|
# minor reason when (say) a thousand readable directories are still
|
||||||
# left to visit. That logic is copied here.
|
# left to visit. That logic is copied here.
|
||||||
try:
|
try:
|
||||||
# Note that listdir and error are globals in this module due
|
|
||||||
# to earlier import-*.
|
|
||||||
names = os.listdir(top)
|
names = os.listdir(top)
|
||||||
except error as err:
|
except os.error as err:
|
||||||
if onerror is not None:
|
if onerror is not None:
|
||||||
onerror(err)
|
onerror(err)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user