cleanup
authorStefan Behnel <scoder@users.berlios.de>
Fri, 19 Dec 2008 02:11:38 +0000 (03:11 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Fri, 19 Dec 2008 02:11:38 +0000 (03:11 +0100)
Cython/Compiler/Optimize.py

index 1ddd988686a812ce6dcf739672a7a2a7c1cf59eb..6f9a22ef1af8332e1ee71103a86b1f45b6100658 100644 (file)
@@ -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):