@@ -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
@@ -1253,7 +1253,7 @@ bytearray_find_impl(PyByteArrayObject *self, PyObject *sub, Py_ssize_t start,
12531253 Py_ssize_t end )
12541254/*[clinic end generated code: output=413e1cab2ae87da0 input=df3aa94840d893a7]*/
12551255{
1256- return _bytearray_with_buffer (self , sub , start , end , _Py_bytes_find );
1256+ return _bytearray_with_buffer (self , _Py_bytes_find , sub , start , end );
12571257}
12581258
12591259/*[clinic input]
@@ -1269,7 +1269,7 @@ bytearray_count_impl(PyByteArrayObject *self, PyObject *sub,
12691269 Py_ssize_t start , Py_ssize_t end )
12701270/*[clinic end generated code: output=a21ee2692e4f1233 input=e8fcdca8272857e0]*/
12711271{
1272- return _bytearray_with_buffer (self , sub , start , end , _Py_bytes_count );
1272+ return _bytearray_with_buffer (self , _Py_bytes_count , sub , start , end );
12731273}
12741274
12751275/*[clinic input]
@@ -1317,7 +1317,7 @@ bytearray_index_impl(PyByteArrayObject *self, PyObject *sub,
13171317 Py_ssize_t start , Py_ssize_t end )
13181318/*[clinic end generated code: output=067a1e78efc672a7 input=c37f177cfee19fe4]*/
13191319{
1320- return _bytearray_with_buffer (self , sub , start , end , _Py_bytes_index );
1320+ return _bytearray_with_buffer (self , _Py_bytes_index , sub , start , end );
13211321}
13221322
13231323/*[clinic input]
@@ -1335,7 +1335,7 @@ bytearray_rfind_impl(PyByteArrayObject *self, PyObject *sub,
13351335 Py_ssize_t start , Py_ssize_t end )
13361336/*[clinic end generated code: output=51bf886f932b283c input=1265b11c437d2750]*/
13371337{
1338- return _bytearray_with_buffer (self , sub , start , end , _Py_bytes_rfind );
1338+ return _bytearray_with_buffer (self , _Py_bytes_rfind , sub , start , end );
13391339}
13401340
13411341/*[clinic input]
@@ -1353,7 +1353,7 @@ bytearray_rindex_impl(PyByteArrayObject *self, PyObject *sub,
13531353 Py_ssize_t start , Py_ssize_t end )
13541354/*[clinic end generated code: output=38e1cf66bafb08b9 input=7d198b3d6b0a62ce]*/
13551355{
1356- return _bytearray_with_buffer (self , sub , start , end , _Py_bytes_rindex );
1356+ return _bytearray_with_buffer (self , _Py_bytes_rindex , sub , start , end );
13571357}
13581358
13591359static int
@@ -1392,7 +1392,7 @@ bytearray_startswith_impl(PyByteArrayObject *self, PyObject *subobj,
13921392 Py_ssize_t start , Py_ssize_t end )
13931393/*[clinic end generated code: output=a3d9b6d44d3662a6 input=93f9ffee684f109a]*/
13941394{
1395- return _bytearray_with_buffer (self , subobj , start , end , _Py_bytes_startswith );
1395+ return _bytearray_with_buffer (self , _Py_bytes_startswith , subobj , start , end );
13961396}
13971397
13981398/*[clinic input]
@@ -1417,7 +1417,7 @@ bytearray_endswith_impl(PyByteArrayObject *self, PyObject *subobj,
14171417 Py_ssize_t start , Py_ssize_t end )
14181418/*[clinic end generated code: output=e75ea8c227954caa input=d158b030a11d0b06]*/
14191419{
1420- return _bytearray_with_buffer (self , subobj , start , end , _Py_bytes_endswith );
1420+ return _bytearray_with_buffer (self , _Py_bytes_endswith , subobj , start , end );
14211421}
14221422
14231423/*[clinic input]
0 commit comments