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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
e2b8184e
Commit
e2b8184e
authored
Jan 10, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add str comparison fallback to Py2 version of unicode comparison
parent
ee20e49c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
Cython/Utility/StringTools.c
Cython/Utility/StringTools.c
+3
-0
No files found.
Cython/Utility/StringTools.c
View file @
e2b8184e
...
...
@@ -133,6 +133,7 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Contains(PyObject* substring, PyObject*
static
CYTHON_INLINE
int
__Pyx_PyUnicode_Equals
(
PyObject
*
s1
,
PyObject
*
s2
,
int
equals
);
/*proto*/
//////////////////// UnicodeEquals ////////////////////
//@requires: BytesEquals
static
CYTHON_INLINE
int
__Pyx_PyUnicode_Equals
(
PyObject
*
s1
,
PyObject
*
s2
,
int
equals
)
{
#if CYTHON_COMPILING_IN_PYPY
...
...
@@ -161,6 +162,8 @@ static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int
return
-
1
;
s1
=
owned_ref
;
s1_is_unicode
=
1
;
}
else
if
(((
!
s2_is_unicode
)
&
(
!
s1_is_unicode
)))
{
return
__Pyx_PyBytes_Equals
(
s1
,
s2
,
equals
);
}
#endif
if
(
s1_is_unicode
&
s2_is_unicode
)
{
...
...
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