Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
74509f10
Commit
74509f10
authored
Mar 15, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix handler method signature
--HG-- extra : rebase_source : a7ab075312caa8eec32ba2763647b3a238404518
parent
cd78a0e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Compiler/Optimize.py
Cython/Compiler/Optimize.py
+2
-2
No files found.
Cython/Compiler/Optimize.py
View file @
74509f10
...
@@ -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.
"""
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment