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
1 changed files with 1 additions and 1 deletions

View 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);