Minor cleanups of code.

This commit is contained in:
Griatch 2012-06-10 11:16:00 +02:00
parent dc67b6b87c
commit 5f043d28d7
2 changed files with 25 additions and 25 deletions

View file

@ -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