[Python-checkins] python/dist/src/Modules fcntlmodule.c,2.41,2.42
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Thu Jun 3 08:47:44 EDT 2004
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21243/Modules
Modified Files:
fcntlmodule.c
Log Message:
Warn abou missing mutate flag to ioctl. Fixes #696535.
Index: fcntlmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/fcntlmodule.c,v
retrieving revision 2.41
retrieving revision 2.42
diff -C2 -d -r2.41 -r2.42
*** fcntlmodule.c 30 Jun 2003 01:54:04 -0000 2.41
--- fcntlmodule.c 3 Jun 2004 12:47:26 -0000 2.42
***************
*** 109,113 ****
if (PyTuple_Size(args) == 3) {
! /* warning goes here in 2.4 */
mutate_arg = 0;
}
--- 109,119 ----
if (PyTuple_Size(args) == 3) {
! #if (PY_MAJOR_VERSION>2) || (PY_MINOR_VERSION>=5)
! #error Remove the warning, change mutate_arg to 1
! #endif
! if (PyErr_Warn(PyExc_FutureWarning,
! "ioctl with mutable buffer will mutate the buffer by default in 2.5"
! ) < 0)
! return NULL;
mutate_arg = 0;
}
More information about the Python-checkins
mailing list