diff options
Diffstat (limited to 'meta/lib/oe/cachedpath.py')
| -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): | |||
| 122 | # minor reason when (say) a thousand readable directories are still | 122 | # minor reason when (say) a thousand readable directories are still |
| 123 | # left to visit. That logic is copied here. | 123 | # left to visit. That logic is copied here. |
| 124 | try: | 124 | try: |
| 125 | # Note that listdir and error are globals in this module due | ||
| 126 | # to earlier import-*. | ||
| 127 | names = os.listdir(top) | 125 | names = os.listdir(top) |
| 128 | except error as err: | 126 | except os.error as err: |
| 129 | if onerror is not None: | 127 | if onerror is not None: |
| 130 | onerror(err) | 128 | onerror(err) |
| 131 | return | 129 | return |
