reflowing; docstrings
This commit is contained in:
parent
4ce12c93a5
commit
44f5035919
@ -187,11 +187,8 @@ class HyASTCompiler(object):
|
|||||||
if type(call) != ast.Call:
|
if type(call) != ast.Call:
|
||||||
raise TypeError("kwapplying a non-call")
|
raise TypeError("kwapplying a non-call")
|
||||||
|
|
||||||
call.keywords = [
|
call.keywords = [ast.keyword(arg=str(x),
|
||||||
ast.keyword(
|
value=self.compile(kwargs[x])) for x in kwargs]
|
||||||
arg=str(x),
|
|
||||||
value=self.compile(kwargs[x])
|
|
||||||
) for x in kwargs]
|
|
||||||
|
|
||||||
return call
|
return call
|
||||||
|
|
||||||
|
@ -102,8 +102,10 @@
|
|||||||
|
|
||||||
|
|
||||||
(defn test-decorators []
|
(defn test-decorators []
|
||||||
|
"NATIVE: test decorators."
|
||||||
(assert (= (tfunction) 2)))
|
(assert (= (tfunction) 2)))
|
||||||
|
|
||||||
|
|
||||||
(defn test-kwargs []
|
(defn test-kwargs []
|
||||||
|
"NATIVE: test kwargs things."
|
||||||
(assert (= (kwapply (kwtest) {"one" "two"}) {"one" "two"})))
|
(assert (= (kwapply (kwtest) {"one" "two"}) {"one" "two"})))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user