@@ -95,8 +95,8 @@ typedef PyObject* (*_ba_bytes_op)(const char *buf, Py_ssize_t len,
9595 Py_ssize_t end );
9696
9797static PyObject *
98- _bytearray_with_buffer (PyByteArrayObject * self , PyObject * sub ,
99- Py_ssize_t start , Py_ssize_t end , _ba_bytes_op op )
98+ _bytearray_with_buffer (PyByteArrayObject * self , _ba_bytes_op op , PyObject * sub ,
99+ Py_ssize_t start , Py_ssize_t end )
100100{
101101 PyObject * res ;
102102
@@ -1268,7 +1268,7 @@ bytearray_find_impl(PyByteArrayObject *self, PyObject *sub, Py_ssize_t start,
12681268 Py_ssize_t end )
12691269/*[clinic end generated code: output=413e1cab2ae87da0 input=df3aa94840d893a7]*/
12701270{
1271- return _bytearray_with_buffer (self , sub , start , end , _Py_bytes_find );
1271+ return _bytearray_with_buffer (self , _Py_bytes_find , sub , start , end );
12721272}
12731273
12741274/*[clinic input]
@@ -1284,7 +1284,7 @@ bytearray_count_impl(PyByteArrayObject *self, PyObject *sub,
12841284 Py_ssize_t start , Py_ssize_t end )
12851285/*[clinic end generated code: output=a21ee2692e4f1233 input=e8fcdca8272857e0]*/
12861286{
1287- return _bytearray_with_buffer (self , sub , start , end , _Py_bytes_count );
1287+ return _bytearray_with_buffer (self , _Py_bytes_count , sub , start , end );
12881288}
12891289
12901290/*[clinic input]
@@ -1332,7 +1332,7 @@ bytearray_index_impl(PyByteArrayObject *self, PyObject *sub,
13321332 Py_ssize_t start , Py_ssize_t end )
13331333/*[clinic end generated code: output=067a1e78efc672a7 input=c37f177cfee19fe4]*/
13341334{
1335- return _bytearray_with_buffer (self , sub , start , end , _Py_bytes_index );
1335+ return _bytearray_with_buffer (self , _Py_bytes_index , sub , start , end );
13361336}
13371337
13381338/*[clinic input]
@@ -1350,7 +1350,7 @@ bytearray_rfind_impl(PyByteArrayObject *self, PyObject *sub,
13501350 Py_ssize_t start , Py_ssize_t end )
13511351/*[clinic end generated code: output=51bf886f932b283c input=1265b11c437d2750]*/
13521352{
1353- return _bytearray_with_buffer (self , sub , start , end , _Py_bytes_rfind );
1353+ return _bytearray_with_buffer (self , _Py_bytes_rfind , sub , start , end );
13541354}
13551355
13561356/*[clinic input]
@@ -1368,7 +1368,7 @@ bytearray_rindex_impl(PyByteArrayObject *self, PyObject *sub,
13681368 Py_ssize_t start , Py_ssize_t end )
13691369/*[clinic end generated code: output=38e1cf66bafb08b9 input=7d198b3d6b0a62ce]*/
13701370{
1371- return _bytearray_with_buffer (self , sub , start , end , _Py_bytes_rindex );
1371+ return _bytearray_with_buffer (self , _Py_bytes_rindex , sub , start , end );
13721372}
13731373
13741374static int
@@ -1407,7 +1407,7 @@ bytearray_startswith_impl(PyByteArrayObject *self, PyObject *subobj,
14071407 Py_ssize_t start , Py_ssize_t end )
14081408/*[clinic end generated code: output=a3d9b6d44d3662a6 input=93f9ffee684f109a]*/
14091409{
1410- return _bytearray_with_buffer (self , subobj , start , end , _Py_bytes_startswith );
1410+ return _bytearray_with_buffer (self , _Py_bytes_startswith , subobj , start , end );
14111411}
14121412
14131413/*[clinic input]
@@ -1432,7 +1432,7 @@ bytearray_endswith_impl(PyByteArrayObject *self, PyObject *subobj,
14321432 Py_ssize_t start , Py_ssize_t end )
14331433/*[clinic end generated code: output=e75ea8c227954caa input=d158b030a11d0b06]*/
14341434{
1435- return _bytearray_with_buffer (self , subobj , start , end , _Py_bytes_endswith );
1435+ return _bytearray_with_buffer (self , _Py_bytes_endswith , subobj , start , end );
14361436}
14371437
14381438/*[clinic input]
0 commit comments