Repair "module has no attribute xxx" error msg; bug introduced when

switching from tp_getattr to tp_getattro.
This commit is contained in:
Tim Peters 2001-05-12 20:24:22 +00:00
parent e9d7f0779d
commit 16cabc0a3d

View file

@ -180,7 +180,7 @@ module_getattro(PyModuleObject *m, PyObject *name)
} }
PyErr_Format(PyExc_AttributeError, PyErr_Format(PyExc_AttributeError,
"'%.50s' module has no attribute '%.400s'", "'%.50s' module has no attribute '%.400s'",
modname, name); modname, sname);
} }
else else
Py_INCREF(res); Py_INCREF(res);