From 270a619cf70699e78b7b027256028252482e85f0 Mon Sep 17 00:00:00 2001 From: Konrad Hinsen Date: Tue, 16 Apr 2013 17:53:02 +0200 Subject: [PATCH] Simplify the decorator hy.compiler.builds Not so much for the efficiency gain, but to save keystrokes in the debugger when looking at methods with lots of builds decorators. --- hy/compiler.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hy/compiler.py b/hy/compiler.py index 74a0fbf..2ffd064 100644 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -89,10 +89,7 @@ def ast_str(foobar): def builds(_type): def _dec(fn): _compile_table[_type] = fn - - def shim(*args, **kwargs): - return fn(*args, **kwargs) - return shim + return fn return _dec