mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue