Issue #19512: Use the new _PyId_builtins identifier

This commit is contained in:
Victor Stinner 2013-11-07 00:43:05 +01:00
parent ad14ccd047
commit 53e9ec48e5
3 changed files with 8 additions and 4 deletions

View file

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