forked from M-Labs/artiq
1
0
Fork 0
This commit is contained in:
Sebastien Bourdeauducq 2014-06-16 21:35:08 +02:00
parent d63c3264d3
commit 733a03b7ad
1 changed files with 1 additions and 1 deletions

View File

@ -4,4 +4,4 @@ def eval_ast(expr, symdict=dict()):
if not isinstance(expr, ast.Expression): if not isinstance(expr, ast.Expression):
expr = ast.Expression(expr) expr = ast.Expression(expr)
code = compile(expr, "<ast>", "eval") code = compile(expr, "<ast>", "eval")
return eval(code, symdict)# return eval(code, symdict)