win32_urandom(): pass the function name to PyArg_ParseTuple, for better

error msgs.
This commit is contained in:
Tim Peters 2004-08-30 17:10:53 +00:00
parent 51eba6115d
commit 9b279a8df4
1 changed files with 1 additions and 1 deletions

View File

@ -7244,7 +7244,7 @@ win32_urandom(PyObject *self, PyObject *args)
PyObject* returnVal = NULL;
/* Read arguments */
if (! PyArg_ParseTuple(args, "i", &howMany))
if (! PyArg_ParseTuple(args, "i:urandom", &howMany))
return NULL;
if (howMany < 0)
return PyErr_Format(PyExc_ValueError,