Commit c4a0aa59 authored by Armin Rigo's avatar Armin Rigo

oops, typo (tests passed by chance)

parent 9d23fbf3
...@@ -297,9 +297,9 @@ static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_di ...@@ -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; static PyObject *py_items = NULL, *py_keys = NULL, *py_values = NULL;
const char *name = PyUnicode_AsUTF8(method_name); const char *name = PyUnicode_AsUTF8(method_name);
PyObject **pp = NULL; PyObject **pp = NULL;
if (strcmp(name, "iteritems")) pp = &py_items; if (strcmp(name, "iteritems") == 0) pp = &py_items;
else if (strcmp(name, "iterkeys")) pp = &py_keys; else if (strcmp(name, "iterkeys") == 0) pp = &py_keys;
else if (strcmp(name, "itervalues")) pp = &py_values; else if (strcmp(name, "itervalues") == 0) pp = &py_values;
if (pp) { if (pp) {
if (!*pp) { if (!*pp) {
*pp = PyUnicode_FromString(name + 4); *pp = PyUnicode_FromString(name + 4);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment