diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-04-09 14:36:49 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-13 22:28:33 +0100 |
commit | e07dd9b9c71960fbeded162ed52fbce06de620e9 (patch) | |
tree | aa1d921dda0ef092a655bf44d54f69d514ec6826 /scripts/lib/wic/msger.py | |
parent | 9946909dc95c3274a98112cf786d171547b3ed75 (diff) | |
download | openembedded-core-e07dd9b9c71960fbeded162ed52fbce06de620e9.tar.gz openembedded-core-e07dd9b9c71960fbeded162ed52fbce06de620e9.tar.bz2 openembedded-core-e07dd9b9c71960fbeded162ed52fbce06de620e9.zip |
wic:code cleanup: No space allowed
Fixed pylint warning
'No space allowed around keyword argument assignment'
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/msger.py')
-rw-r--r-- | scripts/lib/wic/msger.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/lib/wic/msger.py b/scripts/lib/wic/msger.py index 9f557e7b9a..35b705b867 100644 --- a/scripts/lib/wic/msger.py +++ b/scripts/lib/wic/msger.py @@ -60,7 +60,7 @@ CATCHERR_BUFFILE_FD = -1 CATCHERR_BUFFILE_PATH = None CATCHERR_SAVED_2 = -1 -def _general_print(head, color, msg = None, stream = None, level = 'normal'): +def _general_print(head, color, msg=None, stream=None, level='normal'): global LOG_CONTENT if not stream: stream = sys.stdout @@ -130,7 +130,7 @@ def _color_print(head, color, msg, stream, level): stream.flush() -def _color_perror(head, color, msg, level = 'normal'): +def _color_perror(head, color, msg, level='normal'): if CATCHERR_BUFFILE_FD > 0: _general_print(head, color, msg, sys.stdout, level) else: @@ -190,7 +190,7 @@ def info(msg): def verbose(msg): head, msg = _split_msg('Verbose', msg) - _general_print(head, INFO_COLOR, msg, level = 'verbose') + _general_print(head, INFO_COLOR, msg, level='verbose') def warning(msg): head, msg = _split_msg('Warning', msg) @@ -198,7 +198,7 @@ def warning(msg): def debug(msg): head, msg = _split_msg('Debug', msg) - _color_perror(head, ERR_COLOR, msg, level = 'debug') + _color_perror(head, ERR_COLOR, msg, level='debug') def error(msg): head, msg = _split_msg('Error', msg) @@ -299,7 +299,7 @@ def disable_logstderr(): global CATCHERR_BUFFILE_PATH global CATCHERR_SAVED_2 - raw(msg = None) # flush message buffer and print it. + raw(msg=None) # flush message buffer and print it. os.dup2(CATCHERR_SAVED_2, 2) os.close(CATCHERR_SAVED_2) os.close(CATCHERR_BUFFILE_FD) |