Lines Matching refs:suffix
572 "removesuffix($self, suffix, /)\n"
575 "Return a bytes object with the given suffix string removed if present.\n"
577 "If the bytes ends with the suffix string and that suffix is not empty,\n"
585 bytes_removesuffix_impl(PyBytesObject *self, Py_buffer *suffix);
591 Py_buffer suffix = {NULL, NULL};
593 if (PyObject_GetBuffer(arg, &suffix, PyBUF_SIMPLE) != 0) {
596 if (!PyBuffer_IsContiguous(&suffix, 'C')) {
600 return_value = bytes_removesuffix_impl(self, &suffix);
603 /* Cleanup for suffix */
604 if (suffix.obj) {
605 PyBuffer_Release(&suffix);