From 15ae8c83f16866ac3b15e805e5c583047622eab9 Mon Sep 17 00:00:00 2001 From: Konrad Hinsen Date: Thu, 11 Apr 2013 14:41:09 +0200 Subject: [PATCH] Fix names of methods compile_float and compile_complex --- hy/compiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hy/compiler.py b/hy/compiler.py index 6dc1842..57c55ad 100644 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -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)