summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-08-30 12:57:33 (GMT)
committerGitHub <noreply@github.com>2024-08-30 12:57:33 (GMT)
commit3d60dfbe1755e00ab20d0ee81281886be77ad5da (patch)
treeb1078f50a6b8641321f1044698867cb52f27105e /Modules/_io
parent7fca268beee8ed13a8f161f0a0d5e21ff52d1ac1 (diff)
downloadcpython-3d60dfbe1755e00ab20d0ee81281886be77ad5da.zip
cpython-3d60dfbe1755e00ab20d0ee81281886be77ad5da.tar.gz
cpython-3d60dfbe1755e00ab20d0ee81281886be77ad5da.tar.bz2
gh-121645: Add PyBytes_Join() function (#121646)
* Replace _PyBytes_Join() with PyBytes_Join(). * Keep _PyBytes_Join() as an alias to PyBytes_Join().
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/bufferedio.c4
-rw-r--r--Modules/_io/iobase.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_io/bufferedio.c b/Modules/_io/bufferedio.c
index e45323c..bc5fff5 100644
--- a/Modules/_io/bufferedio.c
+++ b/Modules/_io/bufferedio.c
@@ -1283,7 +1283,7 @@ found:
Py_CLEAR(res);
goto end;
}
- Py_XSETREF(res, _PyBytes_Join((PyObject *)&_Py_SINGLETON(bytes_empty), chunks));
+ Py_XSETREF(res, PyBytes_Join((PyObject *)&_Py_SINGLETON(bytes_empty), chunks));
end:
LEAVE_BUFFERED(self)
@@ -1736,7 +1736,7 @@ _bufferedreader_read_all(buffered *self)
goto cleanup;
}
else {
- tmp = _PyBytes_Join((PyObject *)&_Py_SINGLETON(bytes_empty), chunks);
+ tmp = PyBytes_Join((PyObject *)&_Py_SINGLETON(bytes_empty), chunks);
res = tmp;
goto cleanup;
}
diff --git a/Modules/_io/iobase.c b/Modules/_io/iobase.c
index 184e0b7..419e551 100644
--- a/Modules/_io/iobase.c
+++ b/Modules/_io/iobase.c
@@ -999,7 +999,7 @@ _io__RawIOBase_readall_impl(PyObject *self)
return NULL;
}
}
- result = _PyBytes_Join((PyObject *)&_Py_SINGLETON(bytes_empty), chunks);
+ result = PyBytes_Join((PyObject *)&_Py_SINGLETON(bytes_empty), chunks);
Py_DECREF(chunks);
return result;
}