From 44f5035919f46dbc02879bc0c642b7235f5de640 Mon Sep 17 00:00:00 2001 From: "Paul R. Tagliamonte" Date: Sat, 9 Mar 2013 21:16:28 -0500 Subject: [PATCH] reflowing; docstrings --- hy/compiler.py | 7 ++----- tests/native_tests/language.hy | 2 ++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/hy/compiler.py b/hy/compiler.py index b04a897..cd915bb 100644 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -187,11 +187,8 @@ class HyASTCompiler(object): if type(call) != ast.Call: raise TypeError("kwapplying a non-call") - call.keywords = [ - ast.keyword( - arg=str(x), - value=self.compile(kwargs[x]) - ) for x in kwargs] + call.keywords = [ast.keyword(arg=str(x), + value=self.compile(kwargs[x])) for x in kwargs] return call diff --git a/tests/native_tests/language.hy b/tests/native_tests/language.hy index 581e02d..f531c70 100644 --- a/tests/native_tests/language.hy +++ b/tests/native_tests/language.hy @@ -102,8 +102,10 @@ (defn test-decorators [] + "NATIVE: test decorators." (assert (= (tfunction) 2))) (defn test-kwargs [] + "NATIVE: test kwargs things." (assert (= (kwapply (kwtest) {"one" "two"}) {"one" "two"})))