Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kirill Smelkov
cython
Commits
f5f64f5b
Commit
f5f64f5b
authored
4 years ago
by
Stefan Behnel
Browse files
Options
Download
Email Patches
Plain Diff
Fix return type assumption about optimised str() call in Py2.
parent
5ab92ce5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Cython/Compiler/Optimize.py
Cython/Compiler/Optimize.py
+1
-1
No files found.
Cython/Compiler/Optimize.py
View file @
f5f64f5b
...
...
@@ -2313,7 +2313,7 @@ class OptimizeBuiltinCalls(Visitor.NodeRefCleanupMixin,
node
,
function
.
obj
,
attr_name
,
arg_list
)
PyObject_String_func_type
=
PyrexTypes
.
CFuncType
(
Builtin
.
str_type
,
[
PyrexTypes
.
py_object_type
,
[
# Change this to Builtin.str_type when removing Py2 support.
PyrexTypes
.
CFuncTypeArg
(
"obj"
,
PyrexTypes
.
py_object_type
,
None
)
])
...
...
This diff is collapsed.
Click to expand it.
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