Commit 9b279a8d authored by Tim Peters's avatar Tim Peters

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

error msgs.
parent 51eba611
......@@ -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,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment