Style fixes; function declashing.
This commit is contained in:
parent
3ec828e660
commit
1f4ed473d3
@ -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)
|
||||
|
@ -67,7 +67,6 @@ def _resolve_atom(obj):
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
|
||||
table = {
|
||||
"true": "True",
|
||||
"false": "False",
|
||||
|
Loading…
Reference in New Issue
Block a user