Commit ffa9234c authored by Stefan Behnel's avatar Stefan Behnel

reformat some code

parent 608641ca
...@@ -760,15 +760,14 @@ class FusedCFuncDefNode(StatListNode): ...@@ -760,15 +760,14 @@ class FusedCFuncDefNode(StatListNode):
else: else:
nodes = self.nodes nodes = self.nodes
signatures = [ signatures = [StringEncoding.EncodedString(node.specialized_signature_string)
StringEncoding.EncodedString(node.specialized_signature_string)
for node in nodes] for node in nodes]
keys = [ExprNodes.StringNode(node.pos, value=sig) keys = [ExprNodes.StringNode(node.pos, value=sig)
for node, sig in zip(nodes, signatures)] for node, sig in zip(nodes, signatures)]
values = [ExprNodes.PyCFunctionNode.from_defnode(node, True) values = [ExprNodes.PyCFunctionNode.from_defnode(node, binding=True)
for node in nodes] for node in nodes]
self.__signatures__ = ExprNodes.DictNode.from_pairs(self.pos,
zip(keys, values)) self.__signatures__ = ExprNodes.DictNode.from_pairs(self.pos, zip(keys, values))
self.specialized_pycfuncs = values self.specialized_pycfuncs = values
for pycfuncnode in values: for pycfuncnode in values:
......
...@@ -1593,8 +1593,7 @@ if VALUE is not None: ...@@ -1593,8 +1593,7 @@ if VALUE is not None:
node.stats.insert(0, node.py_func) node.stats.insert(0, node.py_func)
node.py_func = self.visit(node.py_func) node.py_func = self.visit(node.py_func)
node.update_fused_defnode_entry(env) node.update_fused_defnode_entry(env)
pycfunc = ExprNodes.PyCFunctionNode.from_defnode(node.py_func, pycfunc = ExprNodes.PyCFunctionNode.from_defnode(node.py_func, binding=True)
True)
pycfunc = ExprNodes.ProxyNode(pycfunc.coerce_to_temp(env)) pycfunc = ExprNodes.ProxyNode(pycfunc.coerce_to_temp(env))
node.resulting_fused_function = pycfunc node.resulting_fused_function = pycfunc
# Create assignment node for our def function # Create assignment node for our def function
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment