diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-11-08 14:49:53 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-15 15:11:56 +0000 |
commit | 42dc4695da136a15bebb7525b1da5c2722b10a28 (patch) | |
tree | 4bba0ff10983112c7945ae4bb9952477131d941b | |
parent | daf95f7fd9f7ab65685d7b764d8e50df8d00d308 (diff) | |
download | openembedded-core-42dc4695da136a15bebb7525b1da5c2722b10a28.tar.gz openembedded-core-42dc4695da136a15bebb7525b1da5c2722b10a28.tar.bz2 openembedded-core-42dc4695da136a15bebb7525b1da5c2722b10a28.zip |
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@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | meta/lib/oe/path.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/meta/lib/oe/path.py b/meta/lib/oe/path.py index 06a5af2659..f73fd4ac07 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 |