]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Repair "module has no attribute xxx" error msg; bug introduced when
authorTim Peters <tim.peters@gmail.com>
Sat, 12 May 2001 20:24:22 +0000 (20:24 +0000)
committerTim Peters <tim.peters@gmail.com>
Sat, 12 May 2001 20:24:22 +0000 (20:24 +0000)
switching from tp_getattr to tp_getattro.

Objects/moduleobject.c

index 6628fe993641d7b3f30a2637187dc5c6677652ef..7df5ce0b1ba5e940b97868f6be7109e9d0af416b 100644 (file)
@@ -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);