Bug 4489 - cachedpath.py: global name 'error' is not defined
Summary: cachedpath.py: global name 'error' is not defined
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.5
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 1.5 M1
Assignee: Robert Yang
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-05-13 03:02 UTC by Robert Yang
Modified: 2013-06-05 02:45 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Yang 2013-05-13 03:02:28 UTC
The following code in cachedpath.py:

124         try:
125             # Note that listdir and error are globals in this module due
126             # to earlier import-*.
127             names = os.listdir(top)
128         except error as err:

The error is not global since we don't use "from os import *", so it
should be os.error.
Comment 2 Yi Zhao 2013-06-05 02:45:36 UTC
Verified.