Minor cleanups of code.
This commit is contained in:
parent
dc67b6b87c
commit
5f043d28d7
2 changed files with 25 additions and 25 deletions
|
|
@ -226,7 +226,7 @@ class LockHandler(object):
|
|||
try:
|
||||
# purge the eval string of any superfluos items, then test it
|
||||
evalstring = " ".join(_RE_OK.findall(evalstring))
|
||||
eval(evalstring % tuple(True for func in funclist))
|
||||
eval(evalstring % tuple(True for func in funclist), {}, {})
|
||||
except Exception:
|
||||
elist.append("Lock: definition '%s' has syntax errors." % raw_lockstring)
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue