From: Stefan Behnel Date: Fri, 19 Dec 2008 02:11:38 +0000 (+0100) Subject: cleanup X-Git-Tag: 0.11-beta~107 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=21ffedf5f425e0dc2cd8e7ba128aa4734cafc0ac;p=cython.git cleanup --- diff --git a/Cython/Compiler/Optimize.py b/Cython/Compiler/Optimize.py index 1ddd9886..6f9a22ef 100644 --- a/Cython/Compiler/Optimize.py +++ b/Cython/Compiler/Optimize.py @@ -447,7 +447,7 @@ class FlattenBuiltinTypeCreation(Visitor.VisitorTransform): self.visitchildren(node) handler = self._find_handler('simple', node.function) if handler is not None: - node = handler(node, node.arg_tuple, None) + node = handler(node, node.arg_tuple) return node def _find_handler(self, call_type, function): @@ -473,7 +473,7 @@ class FlattenBuiltinTypeCreation(Visitor.VisitorTransform): return node return kwargs - def _handle_simple_set(self, node, pos_args, kwargs): + def _handle_simple_set(self, node, pos_args): """Replace set([a,b,...]) by a literal set {a,b,...}. """ if not isinstance(pos_args, ExprNodes.TupleNode): @@ -496,7 +496,7 @@ class FlattenBuiltinTypeCreation(Visitor.VisitorTransform): else: return node - def _handle_simple_tuple(self, node, pos_args, kwargs): + def _handle_simple_tuple(self, node, pos_args): """Replace tuple([...]) by a call to PyList_AsTuple. """ if not isinstance(pos_args, ExprNodes.TupleNode):