fix handler method signature
authorStefan Behnel <stefan_ml@behnel.de>
Fri, 15 Mar 2013 11:22:10 +0000 (12:22 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Fri, 15 Mar 2013 11:22:10 +0000 (12:22 +0100)
--HG--
extra : rebase_source : a7ab075312caa8eec32ba2763647b3a238404518

Cython/Compiler/Optimize.py

index 2e97c7e..98aa743 100644 (file)
@@ -2428,7 +2428,7 @@ class OptimizeBuiltinCalls(Visitor.MethodDispatcherTransform):
             PyrexTypes.CFuncTypeArg("uchar", PyrexTypes.c_py_ucs4_type, None),
             ])
 
-    def _inject_unicode_character_conversion(self, function, node, args, is_unbound_method):
+    def _inject_unicode_character_conversion(self, node, function, args, is_unbound_method):
         if is_unbound_method or len(args) != 1:
             return node
         ustring = args[0]
@@ -2456,7 +2456,7 @@ class OptimizeBuiltinCalls(Visitor.MethodDispatcherTransform):
             PyrexTypes.CFuncTypeArg("keepends", PyrexTypes.c_bint_type, None),
             ])
 
-    def _handle_simple_method_unicode_splitlines(self, function, node, args, is_unbound_method):
+    def _handle_simple_method_unicode_splitlines(self, node, function, args, is_unbound_method):
         """Replace unicode.splitlines(...) by a direct call to the
         corresponding C-API function.
         """