mirror of https://github.com/python/cpython.git
Repair "module has no attribute xxx" error msg; bug introduced when
switching from tp_getattr to tp_getattro.
This commit is contained in:
parent
e9d7f0779d
commit
16cabc0a3d
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue