[Python-checkins] python/dist/src/Modules zipimport.c,1.4,1.5

jvr@users.sourceforge.net jvr@users.sourceforge.net
2002年12月31日 01:52:01 -0800


Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv2326/Modules
Modified Files:
	zipimport.c 
Log Message:
- added missing decref
- whitespace normalization
Index: zipimport.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/zipimport.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** zipimport.c	30 Dec 2002 23:06:14 -0000	1.4
--- zipimport.c	31 Dec 2002 09:51:59 -0000	1.5
***************
*** 175,178 ****
--- 175,179 ----
 	PyObject_GC_UnTrack(self);
 	Py_XDECREF(self->archive);
+ 	Py_XDECREF(self->prefix);
 	Py_XDECREF(self->files);
 	self->ob_type->tp_free((PyObject *)self);
***************
*** 1026,1032 ****
 	if (toc_entry != NULL && PyTuple_Check(toc_entry) &&
 	 PyTuple_Size(toc_entry) == 8) {
! 	 	/* fetch the time stamp of the .py file for comparison
! 	 	 with an embedded pyc time stamp */
! 	 	int time, date;
 		time = PyInt_AsLong(PyTuple_GetItem(toc_entry, 5));
 		date = PyInt_AsLong(PyTuple_GetItem(toc_entry, 6));
--- 1027,1033 ----
 	if (toc_entry != NULL && PyTuple_Check(toc_entry) &&
 	 PyTuple_Size(toc_entry) == 8) {
! 		/* fetch the time stamp of the .py file for comparison
! 		 with an embedded pyc time stamp */
! 		int time, date;
 		time = PyInt_AsLong(PyTuple_GetItem(toc_entry, 5));
 		date = PyInt_AsLong(PyTuple_GetItem(toc_entry, 6));
***************
*** 1177,1181 ****
 			 (PyObject *)&ZipImporter_Type) < 0)
 		return;
! 	
 	zip_directory_cache = PyDict_New();
 	if (zip_directory_cache == NULL)
--- 1178,1182 ----
 			 (PyObject *)&ZipImporter_Type) < 0)
 		return;
! 
 	zip_directory_cache = PyDict_New();
 	if (zip_directory_cache == NULL)

AltStyle によって変換されたページ (->オリジナル) /