[Python-checkins] CVS: python/dist/src/Modules cPickle.c,2.77,2.78
Martin v. L?wis
loewis@users.sourceforge.net
Mon, 01 Apr 2002 09:40:13 -0800
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv15405
Modified Files:
cPickle.c
Log Message:
Reindent. Break long lines. Move comments before the statements.
Index: cPickle.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cPickle.c,v
retrieving revision 2.77
retrieving revision 2.78
diff -C2 -d -r2.77 -r2.78
*** cPickle.c 1 Apr 2002 12:34:33 -0000 2.77
--- cPickle.c 1 Apr 2002 17:40:08 -0000 2.78
***************
*** 150,174 ****
typedef struct {
! PyObject_HEAD
! int length, size;
! PyObject **data;
} Pdata;
static void
! Pdata_dealloc(Pdata *self) {
! int i;
[...8884 lines suppressed...]
! PyDict_SetItemString(d,"__version__", v = PyString_FromString(rev));
! Py_XDECREF(v);
! /* Copy data from di. Waaa. */
! for (i=0; PyDict_Next(di, &i, &k, &v); ) {
! if (PyObject_SetItem(d, k, v) < 0) {
! Py_DECREF(di);
! return;
! }
! }
! Py_DECREF(di);
! format_version = PyString_FromString("1.3");
! compatible_formats = Py_BuildValue("[sss]", "1.0", "1.1", "1.2");
! PyDict_SetItemString(d, "format_version", format_version);
! PyDict_SetItemString(d, "compatible_formats", compatible_formats);
! Py_XDECREF(format_version);
! Py_XDECREF(compatible_formats);
}