pytholite/compiler: fix handling of constants

This commit is contained in:
Sebastien Bourdeauducq 2012-11-09 20:17:57 +01:00
parent 26cf1b8840
commit 4921a34616
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ class _Compiler:
return r
def visit_expr_num(self, node):
return node.n
return Constant(node.n)
# like list.index, but using "is" instead of comparison
def _index_is(l, x):