Make sure to strip key/value of whitespace in lockfunc kwargs. Resolves #2150
This commit is contained in:
parent
0c53f1bcc3
commit
fff80c4752
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ class LockHandler(object):
|
||||||
elist.append(_("Lock: lock-function '%s' is not available.") % funcstring)
|
elist.append(_("Lock: lock-function '%s' is not available.") % funcstring)
|
||||||
continue
|
continue
|
||||||
args = list(arg.strip() for arg in rest.split(",") if arg and "=" not in arg)
|
args = list(arg.strip() for arg in rest.split(",") if arg and "=" not in arg)
|
||||||
kwargs = dict([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))
|
lock_funcs.append((func, args, kwargs))
|
||||||
evalstring = evalstring.replace(funcstring, "%s")
|
evalstring = evalstring.replace(funcstring, "%s")
|
||||||
if len(lock_funcs) < nfuncs:
|
if len(lock_funcs) < nfuncs:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue