[Python-checkins] python/dist/src/Modules posixmodule.c,2.248,2.249
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Tue, 30 Jul 2002 05:27:45 -0700
Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv16077/Modules
Modified Files:
posixmodule.c
Log Message:
Revert changes to use PyArg_Parse(), so any sequence will continue to work -- Spotted by Just van Rossum
Index: posixmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/posixmodule.c,v
retrieving revision 2.248
retrieving revision 2.249
diff -C2 -d -r2.248 -r2.249
*** posixmodule.c 30 Jul 2002 01:23:07 -0000 2.248
--- posixmodule.c 30 Jul 2002 12:27:43 -0000 2.249
***************
*** 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)");
--- 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)");