commit | 9b279a8df4165fa7b36eaf191b017990d7d497f5 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Mon Aug 30 17:10:53 2004 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Mon Aug 30 17:10:53 2004 +0000 |
tree | 89be5b07c6d264b1b491415f7525b8e8e0dd0cae | |
parent | 51eba6115dd0289a8497fe184c0e699343696cb3 [diff] |
win32_urandom(): pass the function name to PyArg_ParseTuple, for better error msgs.
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 477a135..3eb1ee8 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c
@@ -7244,7 +7244,7 @@ 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,