[Python-checkins] python/dist/src/Modules itertoolsmodule.c,1.13,1.14

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Thu, 22 May 2003 09:33:00 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv20040

Modified Files:
	itertoolsmodule.c 
Log Message:
Fixed dotted name assertion.

Index: itertoolsmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/itertoolsmodule.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** itertoolsmodule.c	3 May 2003 05:59:47 -0000	1.13
--- itertoolsmodule.c	22 May 2003 16:32:58 -0000	1.14
***************
*** 1833,1840 ****
  		if (PyType_Ready(typelist[i]) < 0)
  			return;
! 		name = strchr(typelist[i]->tp_name, '.') + 1;
  		assert (name != NULL);
  		Py_INCREF(typelist[i]);
! 		PyModule_AddObject(m, name, (PyObject *)typelist[i]);
  	}
  }
--- 1833,1840 ----
  		if (PyType_Ready(typelist[i]) < 0)
  			return;
! 		name = strchr(typelist[i]->tp_name, '.');
  		assert (name != NULL);
  		Py_INCREF(typelist[i]);
! 		PyModule_AddObject(m, name+1, (PyObject *)typelist[i]);
  	}
  }