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)
|
col_offset=number.start_column)
|
||||||
|
|
||||||
@builds(HyFloat)
|
@builds(HyFloat)
|
||||||
def compile_integer(self, number):
|
def compile_float(self, number):
|
||||||
return ast.Num(n=float(number),
|
return ast.Num(n=float(number),
|
||||||
lineno=number.start_line,
|
lineno=number.start_line,
|
||||||
col_offset=number.start_column)
|
col_offset=number.start_column)
|
||||||
|
|
||||||
@builds(HyComplex)
|
@builds(HyComplex)
|
||||||
def compile_integer(self, number):
|
def compile_complex(self, number):
|
||||||
return ast.Num(n=complex(number),
|
return ast.Num(n=complex(number),
|
||||||
lineno=number.start_line,
|
lineno=number.start_line,
|
||||||
col_offset=number.start_column)
|
col_offset=number.start_column)
|
||||||
|
@ -67,7 +67,6 @@ def _resolve_atom(obj):
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
table = {
|
table = {
|
||||||
"true": "True",
|
"true": "True",
|
||||||
"false": "False",
|
"false": "False",
|
||||||
|
Loading…
Reference in New Issue
Block a user