aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-02-11 13:23:22 -0700
committerTom Rini <trini@konsulko.com>2022-03-02 10:28:12 -0500
commit68a0b7156a73ca401b409dab7baa410c42cdccfd (patch)
treea967217794999e714aaa8d97663b835774c38cbb /tools
parent8d2ef3e993276cffc3615508b8c81eb3036a8f2b (diff)
downloadu-boot-68a0b7156a73ca401b409dab7baa410c42cdccfd.zip
u-boot-68a0b7156a73ca401b409dab7baa410c42cdccfd.tar.gz
u-boot-68a0b7156a73ca401b409dab7baa410c42cdccfd.tar.bz2
moveconfig: Correct pylint errors
Fix two pylint errors in this file. Note ACTION_SPL_NOT_EXIST is not defined so the dead code can be removed. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/moveconfig.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index cff1e30..d4a96ef 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -339,7 +339,7 @@ def read_file(fname, as_lines=True, skip_unicode=False):
return inf.read()
except UnicodeDecodeError as e:
if not skip_unicode:
- raises
+ raise
print("Failed on file %s': %s" % (fname, e))
return None
@@ -790,9 +790,6 @@ class KconfigParser:
actlog = "'%s' is the same as the define in Kconfig. Do nothing." \
% value
log_color = COLOR_LIGHT_PURPLE
- elif action == ACTION_SPL_NOT_EXIST:
- actlog = 'SPL is not enabled for this defconfig. Skip.'
- log_color = COLOR_PURPLE
else:
sys.exit('Internal Error. This should not happen.')