Skip to content

Commit 866694a

Browse files
committed
Remove PY_IDENTIFIER
1 parent 43d97aa commit 866694a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

mypyc/lib-rt/bytes_ops.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,7 @@ int CPyBytes_Endswith(PyObject *self, PyObject *subobj) {
205205

206206
return memcmp(self_buf + (self_len - subobj_len), subobj_buf, (size_t)subobj_len) == 0 ? 1 : 0;
207207
}
208-
_Py_IDENTIFIER(endswith);
209-
PyObject *name = _PyUnicode_FromId(&PyId_endswith);
210-
if (name == NULL) {
211-
return 2;
212-
}
213-
PyObject *result = PyObject_CallMethodOneArg(self, name, subobj);
208+
PyObject *result = PyObject_CallMethodOneArg(self, mypyc_interned_str.endswith, subobj);
214209
if (result == NULL) {
215210
return 2;
216211
}

0 commit comments

Comments
 (0)