From 16cabc0a3df7c7bebc7041f007f325d90482814b Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sat, 12 May 2001 20:24:22 +0000 Subject: [PATCH] Repair "module has no attribute xxx" error msg; bug introduced when switching from tp_getattr to tp_getattro. --- Objects/moduleobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c index 6628fe99364..7df5ce0b1ba 100644 --- a/Objects/moduleobject.c +++ b/Objects/moduleobject.c @@ -180,7 +180,7 @@ module_getattro(PyModuleObject *m, PyObject *name) } PyErr_Format(PyExc_AttributeError, "'%.50s' module has no attribute '%.400s'", - modname, name); + modname, sname); } else Py_INCREF(res);