Make FuncParser integrate better with literal_eval by not nesting strings unnecessarily.
This commit is contained in:
parent
773bb31f55
commit
73eb9a935d
4 changed files with 101 additions and 47 deletions
|
|
@ -151,7 +151,6 @@ def add(*args, **kwargs):
|
|||
val1, val2 = args[0], args[1]
|
||||
# try to convert to python structures, otherwise, keep as strings
|
||||
try:
|
||||
print("val1", val1, type(literal_eval(val1)))
|
||||
val1 = literal_eval(val1.strip())
|
||||
except Exception:
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue