summaryrefslogtreecommitdiff
path: root/Objects/moduleobject.c
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-09-14 17:19:09 +0000
committerMichael W. Hudson <mwh@python.net>2004-09-14 17:19:09 +0000
commitd5a6362c250a915619e237b81b17f6c852dc378c (patch)
tree61df663655a663a8a30311ceabeb74724be52c29 /Objects/moduleobject.c
parenteb8be0f44d6e9f59ed48acc7a30d614d5bfdf448 (diff)
downloadcpython-d5a6362c250a915619e237b81b17f6c852dc378c.tar.gz
Make the word "module" appear in the error string for calling the
module type with silly arguments. (The exact name can be quibbled over, if you care). This was partially inspired by bug #1014215 and so on, but is also just a good idea.
Diffstat (limited to 'Objects/moduleobject.c')
-rw-r--r--Objects/moduleobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c
index 812cbc4ae8..cc75e4570e 100644
--- a/Objects/moduleobject.c
+++ b/Objects/moduleobject.c
@@ -151,7 +151,7 @@ module_init(PyModuleObject *m, PyObject *args, PyObject *kwds)
{
static char *kwlist[] = {"name", "doc", NULL};
PyObject *dict, *name = Py_None, *doc = Py_None;
- if (!PyArg_ParseTupleAndKeywords(args, kwds, "S|O", kwlist,
+ if (!PyArg_ParseTupleAndKeywords(args, kwds, "S|O:module.__init__", kwlist,
&name, &doc))
return -1;
dict = m->md_dict;