summaryrefslogtreecommitdiff
path: root/Modules/_lsprof.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-11-07 00:43:05 +0100
committerVictor Stinner <victor.stinner@gmail.com>2013-11-07 00:43:05 +0100
commit53e9ec48e53840d2af24d7262908e6fc9837e856 (patch)
tree478e4dfbe1489a45b4a0c67c5247ca8d6430209f /Modules/_lsprof.c
parentad14ccd047022d09f486d2359a342ffc5e676e5a (diff)
downloadcpython-git-53e9ec48e53840d2af24d7262908e6fc9837e856.tar.gz
Issue #19512: Use the new _PyId_builtins identifier
Diffstat (limited to 'Modules/_lsprof.c')
-rw-r--r--Modules/_lsprof.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_lsprof.c b/Modules/_lsprof.c
index 894788916d..3ef7d65e49 100644
--- a/Modules/_lsprof.c
+++ b/Modules/_lsprof.c
@@ -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);