mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00
Use def
instead of a lambda for function assignment
Using `def` instead of `x = lambda...` satisfies the PEP8 E731 warning. Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
This commit is contained in:
parent
77c7ff9a91
commit
35268dcf89
1 changed files with 2 additions and 1 deletions
|
@ -215,7 +215,8 @@ def _out(msgs, prefix, color_func, stream=sys.stdout):
|
|||
|
||||
user_conf = read_user_config()
|
||||
if 'COLOR' in user_conf and (user_conf['COLOR'] == '0' or user_conf['COLOR'].lower() == 'false'):
|
||||
color_func = lambda x: x
|
||||
def color_func(x):
|
||||
return x
|
||||
|
||||
if isinstance(msgs, list):
|
||||
first_line = msgs.pop(0)
|
||||
|
|
Loading…
Add table
Reference in a new issue