mirror of https://github.com/python/cpython
win32_urandom(): pass the function name to PyArg_ParseTuple, for better
error msgs.
This commit is contained in:
parent
51eba6115d
commit
9b279a8df4
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue