minor fixes

This commit is contained in:
Blaise Tine
2021-10-11 19:02:13 -07:00
parent 4a4498cd53
commit 1cd833d2c4
11 changed files with 43 additions and 42 deletions

View File

@@ -398,6 +398,8 @@ def eval_node(text, params):
try:
__text = text.replace('$clog2', '__clog2')
__text = translate_ternary(__text)
__text = __text.replace('||', 'or')
__text = __text.replace('&&', 'and')
e = eval(__text, {'__clog2': clog2})
return e
except (NameError, SyntaxError):