solve a bug with par and ^

This commit is contained in:
lafrite 2015-05-20 18:49:51 +02:00
parent fc4d8d19f3
commit d2dffa8ff7

View File

@ -570,6 +570,11 @@ class op(object):
except AttributeError as e:
# op has not the attribute priority
pass
try:
if int(opl) < 0:
ans = ["(", opl, ")"]
except ValueError:
pass
ans = flatten_list([ans])
if str_join: