mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Issue #19512: Use the new _PyId_builtins identifier
This commit is contained in:
parent
ad14ccd047
commit
53e9ec48e5
3 changed files with 8 additions and 4 deletions
|
|
@ -185,7 +185,7 @@ normalizeUserObj(PyObject *obj)
|
|||
}
|
||||
}
|
||||
if (modname != NULL) {
|
||||
if (PyUnicode_CompareWithASCIIString(modname, "builtins") != 0) {
|
||||
if (_PyUnicode_CompareWithId(modname, &_PyId_builtins) != 0) {
|
||||
PyObject *result;
|
||||
result = PyUnicode_FromFormat("<%U.%s>", modname,
|
||||
fn->m_ml->ml_name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue