Ran black on sources, add black config
This commit is contained in:
parent
abe4b1e4ee
commit
0df87037e7
32 changed files with 1031 additions and 232 deletions
|
|
@ -236,7 +236,13 @@ class LockHandler(object):
|
|||
elist.append(_("Lock: lock-function '%s' is not available.") % funcstring)
|
||||
continue
|
||||
args = list(arg.strip() for arg in rest.split(",") if arg and "=" not in arg)
|
||||
kwargs = dict([(part.strip() for part in arg.split("=", 1)) for arg in rest.split(",") if arg and "=" in arg])
|
||||
kwargs = dict(
|
||||
[
|
||||
(part.strip() for part in arg.split("=", 1))
|
||||
for arg in rest.split(",")
|
||||
if arg and "=" in arg
|
||||
]
|
||||
)
|
||||
lock_funcs.append((func, args, kwargs))
|
||||
evalstring = evalstring.replace(funcstring, "%s")
|
||||
if len(lock_funcs) < nfuncs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue