From 9b279a8df4165fa7b36eaf191b017990d7d497f5 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Mon, 30 Aug 2004 17:10:53 +0000 Subject: win32_urandom(): pass the function name to PyArg_ParseTuple, for better error msgs. --- Modules/posixmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v0.12