[Python-checkins] python/dist/src/Modules posixmodule.c,2.247,2.248
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Mon, 29 Jul 2002 18:23:09 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv31715/Modules
Modified Files:
posixmodule.c
Log Message:
Use PyArg_ParseTuple() instead of PyArg_Parse() which is deprecated
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.247
retrieving revision 2.248
diff -C2 -d -r2.247 -r2.248
*** posixmodule.c 30 Jul 2002 01:17:43 -0000 2.247
--- posixmodule.c 30 Jul 2002 01:23:07 -0000 2.248
***************
*** 1420,1424 ****
Py_END_ALLOW_THREADS
}
! else if (!PyArg_Parse(arg, "(ll)", &atime, &mtime)) {
PyErr_SetString(PyExc_TypeError,
"utime() arg 2 must be a tuple (atime, mtime)");
--- 1420,1424 ----
Py_END_ALLOW_THREADS
}
! else if (!PyArg_ParseTuple(arg, "ll", &atime, &mtime)) {
PyErr_SetString(PyExc_TypeError,
"utime() arg 2 must be a tuple (atime, mtime)");