We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43d97aa commit 866694aCopy full SHA for 866694a
mypyc/lib-rt/bytes_ops.c
@@ -205,12 +205,7 @@ int CPyBytes_Endswith(PyObject *self, PyObject *subobj) {
205
206
return memcmp(self_buf + (self_len - subobj_len), subobj_buf, (size_t)subobj_len) == 0 ? 1 : 0;
207
}
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);
+ PyObject *result = PyObject_CallMethodOneArg(self, mypyc_interned_str.endswith, subobj);
214
if (result == NULL) {
215
return 2;
216
0 commit comments