flake8: apply W rules (prefering W503)

This commit is contained in:
Yuming Zhu 2020-02-27 23:11:49 +08:00
parent c5db34a8e1
commit 2a2c5cb729
8 changed files with 35 additions and 31 deletions

View file

@ -118,8 +118,7 @@ def parse_task_params(method, params):
"""
# check for new style
if (len(params) == 1 and isinstance(params[0], dict)
and '__method__' in params[0]):
if len(params) == 1 and isinstance(params[0], dict) and '__method__' in params[0]:
ret = params[0].copy()
del ret['__method__']
return ret