]> granicus.if.org Git - python/commitdiff
win32_urandom(): pass the function name to PyArg_ParseTuple, for better
authorTim Peters <tim.peters@gmail.com>
Mon, 30 Aug 2004 17:10:53 +0000 (17:10 +0000)
committerTim Peters <tim.peters@gmail.com>
Mon, 30 Aug 2004 17:10:53 +0000 (17:10 +0000)
error msgs.

Modules/posixmodule.c

index 477a1355e6fb461a68e46d594e48955f498e2693..3eb1ee8cbcbd84c9fb36f0d28964b4d24f32ef0f 100644 (file)
@@ -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,