solve a bug with par and ^
This commit is contained in:
parent
fc4d8d19f3
commit
d2dffa8ff7
@ -570,6 +570,11 @@ class op(object):
|
|||||||
except AttributeError as e:
|
except AttributeError as e:
|
||||||
# op has not the attribute priority
|
# op has not the attribute priority
|
||||||
pass
|
pass
|
||||||
|
try:
|
||||||
|
if int(opl) < 0:
|
||||||
|
ans = ["(", opl, ")"]
|
||||||
|
except ValueError:
|
||||||
|
pass
|
||||||
|
|
||||||
ans = flatten_list([ans])
|
ans = flatten_list([ans])
|
||||||
if str_join:
|
if str_join:
|
||||||
|
Loading…
Reference in New Issue
Block a user