Skip to content

Commit 82643f8

Browse files
cmaloneyvstinner
andauthored
Update Modules/_io/iobase.c
Co-authored-by: Victor Stinner <vstinner@python.org>
1 parent 7dc7e92 commit 82643f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_io/iobase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ _io__RawIOBase_read_impl(PyObject *self, Py_ssize_t n)
951951
if (PyByteArray_Resize(b, bytes_filled) < 0) {
952952
goto cleanup;
953953
}
954-
res = PyObject_CallMethod(b, "take_bytes", NULL);
954+
res = _PyObject_CallMethod(b, &_Py_ID(takes_bytes), NULL);
955955

956956
cleanup:
957957
Py_DECREF(b);

0 commit comments

Comments
 (0)