[Python-checkins] python/dist/src/Modules itertoolsmodule.c, 1.24,
1.25
rhettinger at users.sourceforge.net
rhettinger at users.sourceforge.net
Tue Oct 28 02:32:31 EST 2003
Update of /cvsroot/python/python/dist/src/Modules
In directory sc8-pr-cvs1:/tmp/cvs-serv20751
Modified Files:
itertoolsmodule.c
Log Message:
Fix nits in error messages.
Index: itertoolsmodule.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Modules/itertoolsmodule.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** itertoolsmodule.c 26 Oct 2003 14:25:56 -0000 1.24
--- itertoolsmodule.c 28 Oct 2003 07:32:28 -0000 1.25
***************
*** 768,772 ****
PyErr_Clear();
PyErr_SetString(PyExc_ValueError,
! "Stop argument must be an integer or None.");
return NULL;
}
--- 768,772 ----
PyErr_Clear();
PyErr_SetString(PyExc_ValueError,
! "Stop argument must be a non-negative integer or None.");
return NULL;
}
***************
*** 777,781 ****
PyErr_Clear();
PyErr_SetString(PyExc_ValueError,
! "Start argument must be an integer.");
return NULL;
}
--- 777,781 ----
PyErr_Clear();
PyErr_SetString(PyExc_ValueError,
! "Start argument must be a non-negative integer.");
return NULL;
}
***************
*** 786,790 ****
PyErr_Clear();
PyErr_SetString(PyExc_ValueError,
! "Stop argument must be an integer or None.");
return NULL;
}
--- 786,790 ----
PyErr_Clear();
PyErr_SetString(PyExc_ValueError,
! "Stop argument must be a non-negative integer or None.");
return NULL;
}
***************
*** 794,798 ****
if (start<0 || stop<-1) {
PyErr_SetString(PyExc_ValueError,
! "Indices for islice() must be positive.");
return NULL;
}
--- 794,798 ----
if (start<0 || stop<-1) {
PyErr_SetString(PyExc_ValueError,
! "Indices for islice() must be non-negative integers.");
return NULL;
}
More information about the Python-checkins
mailing list