Commit d449eab1 authored by Raymond Hettinger's avatar Raymond Hettinger

Fixed dotted name assertion.

parent f9415e62
...@@ -1832,9 +1832,9 @@ inititertools(void) ...@@ -1832,9 +1832,9 @@ inititertools(void)
for (i=0 ; typelist[i] != NULL ; i++) { for (i=0 ; typelist[i] != NULL ; i++) {
if (PyType_Ready(typelist[i]) < 0) if (PyType_Ready(typelist[i]) < 0)
return; return;
name = strchr(typelist[i]->tp_name, '.') + 1; name = strchr(typelist[i]->tp_name, '.');
assert (name != NULL); assert (name != NULL);
Py_INCREF(typelist[i]); Py_INCREF(typelist[i]);
PyModule_AddObject(m, name, (PyObject *)typelist[i]); PyModule_AddObject(m, name+1, (PyObject *)typelist[i]);
} }
} }
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