diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-08-30 17:10:53 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-08-30 17:10:53 (GMT) |
commit | 9b279a8df4165fa7b36eaf191b017990d7d497f5 (patch) | |
tree | 89be5b07c6d264b1b491415f7525b8e8e0dd0cae /Modules/posixmodule.c | |
parent | 51eba6115dd0289a8497fe184c0e699343696cb3 (diff) | |
download | cpython-9b279a8df4165fa7b36eaf191b017990d7d497f5.zip cpython-9b279a8df4165fa7b36eaf191b017990d7d497f5.tar.gz cpython-9b279a8df4165fa7b36eaf191b017990d7d497f5.tar.bz2 |
win32_urandom(): pass the function name to PyArg_ParseTuple, for better
error msgs.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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, |