From: Tim Peters Date: Mon, 30 Aug 2004 17:10:53 +0000 (+0000) Subject: win32_urandom(): pass the function name to PyArg_ParseTuple, for better X-Git-Tag: v2.4a3~49 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b279a8df4165fa7b36eaf191b017990d7d497f5;p=python win32_urandom(): pass the function name to PyArg_ParseTuple, for better error msgs. --- diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 477a1355e6..3eb1ee8cbc 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,