summaryrefslogtreecommitdiff
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
commit1fd00a1b7185a6bfb575e3ca0303e5fdc9d24498 (patch)
tree2f1beb7aa232bc00dae3666b9141be6a22f378c3
parent1593f502e8d0b40242393c44fa24d54f3defe974 (diff)
downloadcpython-git-1fd00a1b7185a6bfb575e3ca0303e5fdc9d24498.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.
-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;