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
7d2366cf
Commit
7d2366cf
authored
Jul 05, 2020
by
Victor Stinner
Committed by
GitHub
Jul 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid calling PyUnicode_FromUnicode() in Py3 (GH-3721)
See
https://github.com/cython/cython/pull/3677
parent
195aeadc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Cython/Utility/StringTools.c
Cython/Utility/StringTools.c
+1
-1
No files found.
Cython/Utility/StringTools.c
View file @
7d2366cf
...
...
@@ -561,7 +561,7 @@ static CYTHON_INLINE PyObject* __Pyx_PyUnicode_Substring(
else
if
(
stop
>
length
)
stop
=
length
;
if
(
stop
<=
start
)
return
PyUnicode_FromUnicode
(
NULL
,
0
);
return
__Pyx_NewRef
(
$
empty_unicode
);
#if CYTHON_PEP393_ENABLED
return
PyUnicode_FromKindAndData
(
PyUnicode_KIND
(
text
),
PyUnicode_1BYTE_DATA
(
text
)
+
start
*
PyUnicode_KIND
(
text
),
stop
-
start
);
...
...
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