From 1f4ed473d30b3e2cdd5d39379f61d4aaf2ec1230 Mon Sep 17 00:00:00 2001 From: Paul Tagliamonte Date: Fri, 12 Apr 2013 09:11:56 -0400 Subject: [PATCH] Style fixes; function declashing. --- hy/compiler.py | 4 ++-- hy/lex/states.py | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hy/compiler.py b/hy/compiler.py index 5aaaa65..0262c78 100644 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -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) diff --git a/hy/lex/states.py b/hy/lex/states.py index 8691d9d..7070884 100644 --- a/hy/lex/states.py +++ b/hy/lex/states.py @@ -67,7 +67,6 @@ def _resolve_atom(obj): except ValueError: pass - table = { "true": "True", "false": "False",