mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-29 17:55:48 +00:00
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>
This commit is contained in:
parent
8d2ef3e993
commit
68a0b7156a
1 changed files with 1 additions and 4 deletions
|
@ -339,7 +339,7 @@ def read_file(fname, as_lines=True, skip_unicode=False):
|
||||||
return inf.read()
|
return inf.read()
|
||||||
except UnicodeDecodeError as e:
|
except UnicodeDecodeError as e:
|
||||||
if not skip_unicode:
|
if not skip_unicode:
|
||||||
raises
|
raise
|
||||||
print("Failed on file %s': %s" % (fname, e))
|
print("Failed on file %s': %s" % (fname, e))
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -790,9 +790,6 @@ class KconfigParser:
|
||||||
actlog = "'%s' is the same as the define in Kconfig. Do nothing." \
|
actlog = "'%s' is the same as the define in Kconfig. Do nothing." \
|
||||||
% value
|
% value
|
||||||
log_color = COLOR_LIGHT_PURPLE
|
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:
|
else:
|
||||||
sys.exit('Internal Error. This should not happen.')
|
sys.exit('Internal Error. This should not happen.')
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue