Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] cachedpath.py: global name 'error' is not defined
@ 2013-05-13  8:34 Robert Yang
  2013-05-13  8:34 ` [PATCH 1/1] " Robert Yang
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Yang @ 2013-05-13  8:34 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit f7afeeb75993b159bb8959e0309bc5eb3978a8fb:

  bitbake: bitbake-layers/tinfoil: Catch up with status -> recpiecache rename (2013-05-12 18:00:46 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib robert/cachedpath
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=robert/cachedpath

Robert Yang (1):
  cachedpath.py: global name 'error' is not defined

 meta/lib/oe/cachedpath.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

-- 
1.8.1.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] cachedpath.py: global name 'error' is not defined
  2013-05-13  8:34 [PATCH 0/1] cachedpath.py: global name 'error' is not defined Robert Yang
@ 2013-05-13  8:34 ` Robert Yang
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2013-05-13  8:34 UTC (permalink / raw)
  To: openembedded-core

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>
---
 meta/lib/oe/cachedpath.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/meta/lib/oe/cachedpath.py b/meta/lib/oe/cachedpath.py
index c7860ef..0840cc4 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
-- 
1.8.1.2




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-05-13  8:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-13  8:34 [PATCH 0/1] cachedpath.py: global name 'error' is not defined Robert Yang
2013-05-13  8:34 ` [PATCH 1/1] " Robert Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox