* [PATCH] cooker: Remove pointless repeated import
@ 2013-05-10 15:18 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2013-05-10 15:18 UTC (permalink / raw)
To: bitbake-devel
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 85761e0..cd3b6e3 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1431,14 +1431,12 @@ class CookerCollectFiles(object):
def find_bbfiles(self, path):
"""Find all the .bb and .bbappend files in a directory"""
- from os.path import join
-
found = []
for dir, dirs, files in os.walk(path):
for ignored in ('SCCS', 'CVS', '.svn'):
if ignored in dirs:
dirs.remove(ignored)
- found += [join(dir, f) for f in files if (f.endswith('.bb') or f.endswith('.bbappend'))]
+ found += [os.path.join(dir, f) for f in files if (f.endswith('.bb') or f.endswith('.bbappend'))]
return found
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-05-10 15:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-10 15:18 [PATCH] cooker: Remove pointless repeated import Richard Purdie
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.