diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-09-02 13:58:14 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-02 23:46:51 +0100 |
commit | bed98142e3e47ac2862ccf8fe3e4bdeabfc91172 (patch) | |
tree | 739f18228a3269cc80925e2aeabb21a5ef5b3542 /scripts/lib/wic/engine.py | |
parent | 3644b9f5ca25dfc61d4f5eda0f073c8a879b492b (diff) | |
download | openembedded-core-bed98142e3e47ac2862ccf8fe3e4bdeabfc91172.tar.gz openembedded-core-bed98142e3e47ac2862ccf8fe3e4bdeabfc91172.tar.bz2 openembedded-core-bed98142e3e47ac2862ccf8fe3e4bdeabfc91172.zip |
wic: fix pylint warning redefined-builtin
Renamed variables named as Python builtin functions.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/engine.py')
-rw-r--r-- | scripts/lib/wic/engine.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index 30c4fa38dc..d4a7be6c3a 100644 --- a/scripts/lib/wic/engine.py +++ b/scripts/lib/wic/engine.py @@ -77,11 +77,11 @@ def find_canned_image(scripts_path, wks_file): for canned_wks_dir in layers_canned_wks_dir: for root, dirs, files in os.walk(canned_wks_dir): - for file in files: - if file.endswith("~") or file.endswith("#"): + for fname in files: + if fname.endswith("~") or fname.endswith("#"): continue - if file.endswith(".wks") and wks_file + ".wks" == file: - fullpath = os.path.join(canned_wks_dir, file) + if fname.endswith(".wks") and wks_file + ".wks" == fname: + fullpath = os.path.join(canned_wks_dir, fname) return fullpath return None @@ -94,11 +94,11 @@ def list_canned_images(scripts_path): for canned_wks_dir in layers_canned_wks_dir: for root, dirs, files in os.walk(canned_wks_dir): - for file in files: - if file.endswith("~") or file.endswith("#"): + for fname in files: + if fname.endswith("~") or fname.endswith("#"): continue - if file.endswith(".wks"): - fullpath = os.path.join(canned_wks_dir, file) + if fname.endswith(".wks"): + fullpath = os.path.join(canned_wks_dir, fname) f = open(fullpath, "r") lines = f.readlines() for line in lines: @@ -107,7 +107,7 @@ def list_canned_images(scripts_path): if idx != -1: desc = line[idx + len("short-description:"):].strip() break - basename = os.path.splitext(file)[0] + basename = os.path.splitext(fname)[0] print " %s\t\t%s" % (basename.ljust(30), desc) |