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
c4a0aa59
Commit
c4a0aa59
authored
7 years ago
by
Armin Rigo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oops, typo (tests passed by chance)
parent
9d23fbf3
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Utility/Optimize.c
Cython/Utility/Optimize.c
+3
-3
No files found.
Cython/Utility/Optimize.c
View file @
c4a0aa59
...
...
@@ -297,9 +297,9 @@ static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_di
static
PyObject
*
py_items
=
NULL
,
*
py_keys
=
NULL
,
*
py_values
=
NULL
;
const
char
*
name
=
PyUnicode_AsUTF8
(
method_name
);
PyObject
**
pp
=
NULL
;
if
(
strcmp
(
name
,
"iteritems"
))
pp
=
&
py_items
;
else
if
(
strcmp
(
name
,
"iterkeys"
))
pp
=
&
py_keys
;
else
if
(
strcmp
(
name
,
"itervalues"
))
pp
=
&
py_values
;
if
(
strcmp
(
name
,
"iteritems"
)
==
0
)
pp
=
&
py_items
;
else
if
(
strcmp
(
name
,
"iterkeys"
)
==
0
)
pp
=
&
py_keys
;
else
if
(
strcmp
(
name
,
"itervalues"
)
==
0
)
pp
=
&
py_values
;
if
(
pp
)
{
if
(
!*
pp
)
{
*
pp
=
PyUnicode_FromString
(
name
+
4
);
...
...
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