Fix names of methods compile_float and compile_complex
This commit is contained in:
parent
ac0a597742
commit
15ae8c83f1
@ -902,13 +902,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)
|
||||
|
Loading…
Reference in New Issue
Block a user