Skip to content

Commit 614e743

Browse files
committed
Call take_bytes directly
1 parent 70c15bf commit 614e743

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/bytearrayobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ bytearray_iconcat_lock_held(PyObject *op, PyObject *other)
344344
* Just returning other doesn't work as __init__ calls this and can't
345345
* change self. */
346346
if (PyByteArray_CheckExact(other)) {
347-
PyObject *taken = PyObject_CallMethodNoArgs(other,
348-
&_Py_ID(take_bytes));
347+
PyObject *taken;
348+
taken = bytearray_take_bytes_impl((PyByteArrayObject*)other, Py_None);
349349
if (taken == NULL) {
350350
return NULL;
351351
}

0 commit comments

Comments
 (0)