summaryrefslogtreecommitdiffstats
path: root/Modules/itertoolsmodule.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2003-05-22 16:32:58 (GMT)
committerRaymond Hettinger <python@rcn.com>2003-05-22 16:32:58 (GMT)
commitd449eab1e45d2f532f9eb6c7d35545f2d9a5248a (patch)
tree92ebfb1066021081e2fba9ca6cb21942abf83143 /Modules/itertoolsmodule.c
parentf9415e62458226dbbf90d3a4adea2d60bebae606 (diff)
downloadcpython-d449eab1e45d2f532f9eb6c7d35545f2d9a5248a.zip
cpython-d449eab1e45d2f532f9eb6c7d35545f2d9a5248a.tar.gz
cpython-d449eab1e45d2f532f9eb6c7d35545f2d9a5248a.tar.bz2
Fixed dotted name assertion.
Diffstat (limited to 'Modules/itertoolsmodule.c')
-rw-r--r--Modules/itertoolsmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index b52f349..20461a7 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -1832,9 +1832,9 @@ inititertools(void)
for (i=0 ; typelist[i] != NULL ; i++) {
if (PyType_Ready(typelist[i]) < 0)
return;
- name = strchr(typelist[i]->tp_name, '.') + 1;
+ name = strchr(typelist[i]->tp_name, '.');
assert (name != NULL);
Py_INCREF(typelist[i]);
- PyModule_AddObject(m, name, (PyObject *)typelist[i]);
+ PyModule_AddObject(m, name+1, (PyObject *)typelist[i]);
}
}