Commit 74509f10 authored by Stefan Behnel's avatar Stefan Behnel

fix handler method signature

--HG--
extra : rebase_source : a7ab075312caa8eec32ba2763647b3a238404518
parent cd78a0e8
...@@ -2428,7 +2428,7 @@ class OptimizeBuiltinCalls(Visitor.MethodDispatcherTransform): ...@@ -2428,7 +2428,7 @@ class OptimizeBuiltinCalls(Visitor.MethodDispatcherTransform):
PyrexTypes.CFuncTypeArg("uchar", PyrexTypes.c_py_ucs4_type, None), 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: if is_unbound_method or len(args) != 1:
return node return node
ustring = args[0] ustring = args[0]
...@@ -2456,7 +2456,7 @@ class OptimizeBuiltinCalls(Visitor.MethodDispatcherTransform): ...@@ -2456,7 +2456,7 @@ class OptimizeBuiltinCalls(Visitor.MethodDispatcherTransform):
PyrexTypes.CFuncTypeArg("keepends", PyrexTypes.c_bint_type, None), 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 """Replace unicode.splitlines(...) by a direct call to the
corresponding C-API function. corresponding C-API 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