Mailing List Archive

python/dist/src/Modules cPickle.c,2.83,2.84
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv20067/Modules

Modified Files:
cPickle.c
Log Message:
Pickler_clear_memo(): convert to METH_NOARGS.

Index: cPickle.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/cPickle.c,v
retrieving revision 2.83
retrieving revision 2.84
diff -C2 -d -r2.83 -r2.84
*** cPickle.c 27 Apr 2002 18:44:29 -0000 2.83
--- cPickle.c 1 May 2002 20:36:39 -0000 2.84
***************
*** 2121,2126 ****
Pickle_clear_memo(Picklerobject *self, PyObject *args)
{
- if (!PyArg_ParseTuple(args,":clear_memo"))
- return NULL;
if (self->memo)
PyDict_Clear(self->memo);
--- 2121,2124 ----
***************
*** 2291,2297 ****
{"dump", (PyCFunction)Pickler_dump, METH_VARARGS,
"dump(object) --"
! "Write an object in pickle format to the object's pickle stream\n"
! },
! {"clear_memo", (PyCFunction)Pickle_clear_memo, METH_VARARGS,
"clear_memo() -- Clear the picklers memo"},
{"getvalue", (PyCFunction)Pickle_getvalue, METH_VARARGS,
--- 2289,2294 ----
{"dump", (PyCFunction)Pickler_dump, METH_VARARGS,
"dump(object) --"
! "Write an object in pickle format to the object's pickle stream"},
! {"clear_memo", (PyCFunction)Pickle_clear_memo, METH_NOARGS,
"clear_memo() -- Clear the picklers memo"},
{"getvalue", (PyCFunction)Pickle_getvalue, METH_VARARGS,