Style fixes; function declashing.

This commit is contained in:
Paul Tagliamonte 2013-04-12 09:11:56 -04:00
parent 3ec828e660
commit 1f4ed473d3
2 changed files with 2 additions and 3 deletions

View File

@ -910,13 +910,13 @@ class HyASTCompiler(object):
col_offset=number.start_column)
@builds(HyFloat)
def compile_integer(self, number):
def compile_float(self, number):
return ast.Num(n=float(number),
lineno=number.start_line,
col_offset=number.start_column)
@builds(HyComplex)
def compile_integer(self, number):
def compile_complex(self, number):
return ast.Num(n=complex(number),
lineno=number.start_line,
col_offset=number.start_column)

View File

@ -67,7 +67,6 @@ def _resolve_atom(obj):
except ValueError:
pass
table = {
"true": "True",
"false": "False",