[oe-commits] [openembedded-core] 18/50: lib/oe/path: remove duplicate import
git at git.openembedded.org
git at git.openembedded.org
Tue Nov 15 15:20:50 UTC 2016
rpurdie pushed a commit to branch master
in repository openembedded-core.
commit 42dc4695da136a15bebb7525b1da5c2722b10a28
Author: Joshua Lock <joshua.g.lock at intel.com>
AuthorDate: Tue Nov 8 14:49:53 2016 +0000
lib/oe/path: remove duplicate import
There's no need to import glob inside copyhardlinktree() as it's
already imported for the entire path module.
Signed-off-by: Joshua Lock <joshua.g.lock at intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
meta/lib/oe/path.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py
index 06a5af2..f73fd4a 100644
--- a/meta/lib/oe/path.py
+++ b/meta/lib/oe/path.py
@@ -81,7 +81,6 @@ def copyhardlinktree(src, dst):
subprocess.check_output(cmd, shell=True, stderr=subprocess.STDOUT)
source = ''
if os.path.isdir(src):
- import glob
if len(glob.glob('%s/.??*' % src)) > 0:
source = '%s/.??* ' % src
source = source + '%s/*' % src
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list