compiler/tools/eval_constant: raise NotConstant on calls

This commit is contained in:
Sebastien Bourdeauducq 2014-08-18 23:11:27 +08:00
parent b1598ba659
commit 24544f2758
1 changed files with 2 additions and 0 deletions

View File

@ -57,5 +57,7 @@ def eval_constant(node):
except:
raise NotConstant
return units.Quantity(amount, unit)
else:
raise NotConstant
else:
raise NotConstant