From: Tim Peters Date: Sat, 12 May 2001 20:24:22 +0000 (+0000) Subject: Repair "module has no attribute xxx" error msg; bug introduced when X-Git-Tag: v2.2a3~1797 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=16cabc0a3df7c7bebc7041f007f325d90482814b;p=thirdparty%2FPython%2Fcpython.git Repair "module has no attribute xxx" error msg; bug introduced when switching from tp_getattr to tp_getattro. --- diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c index 6628fe993641..7df5ce0b1ba5 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);