diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2013-05-13 16:34:28 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-15 08:32:14 +0300 |
commit | ac0e2781c2723257bd380cac170d4c8b97e36747 (patch) | |
tree | 1d843f3b66f1c8b92d507f4cc9724d6e8e378cb7 /meta/lib | |
parent | f9f1397d688cc4eb8d736066b1280bee40a8916a (diff) | |
download | openembedded-core-ac0e2781c2723257bd380cac170d4c8b97e36747.tar.gz openembedded-core-ac0e2781c2723257bd380cac170d4c8b97e36747.tar.bz2 openembedded-core-ac0e2781c2723257bd380cac170d4c8b97e36747.zip |
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]
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/cachedpath.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/lib/oe/cachedpath.py b/meta/lib/oe/cachedpath.py index c7860ef4fb..0840cc4c3f 100644 --- a/meta/lib/oe/cachedpath.py +++ b/meta/lib/oe/cachedpath.py @@ -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. try: - # 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: onerror(err) return |