reflowing; docstrings

This commit is contained in:
Paul R. Tagliamonte 2013-03-09 21:16:28 -05:00
parent 4ce12c93a5
commit 44f5035919
2 changed files with 4 additions and 5 deletions

View File

@ -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

View File

@ -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"})))