[Python-checkins] CVS: python/dist/src/Modules fcntlmodule.c,2.30,2.31

Fred L. Drake fdrake@users.sourceforge.net
Mon, 14 May 2001 14:02:38 -0700


Update of /cvsroot/python/python/dist/src/Modules
In directory usw-pr-cvs1:/tmp/cvs-serv2695/Modules

Modified Files:
	fcntlmodule.c 
Log Message:

fcntl.ioctl():  Update error message; necessity noted by Michael Hudson.


Index: fcntlmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/fcntlmodule.c,v
retrieving revision 2.30
retrieving revision 2.31
diff -C2 -r2.30 -r2.31
*** fcntlmodule.c	2001/05/10 15:54:32	2.30
--- fcntlmodule.c	2001/05/14 21:02:36	2.31
***************
*** 125,129 ****
  	PyErr_Clear();
  	arg = 0;
! 	if (!PyArg_ParseTuple(args, "O&i|i;ioctl requires 2 integers and optionally a third integer or a string",
  			      conv_descriptor, &fd, &code, &arg)) {
  	  return NULL;
--- 125,131 ----
  	PyErr_Clear();
  	arg = 0;
! 	if (!PyArg_ParseTuple(args,
! 	     "O&i|i;ioctl requires a file or file descriptor,"
! 	     " an integer and optionally a third integer or a string",
  			      conv_descriptor, &fd, &code, &arg)) {
  	  return NULL;