summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorKumar Aditya <59607654+kumaraditya303@users.noreply.github.com>2022-04-19 17:41:36 (GMT)
committerGitHub <noreply@github.com>2022-04-19 17:41:36 (GMT)
commitab0d35d70dfe0b4c11583f8f735a8cc49b58c58b (patch)
treeed1f726c61787498c0d7fa9890c932d6945ee881 /Modules/_io
parent3c4380651301f255ef8149b638a1fae205ede575 (diff)
downloadcpython-ab0d35d70dfe0b4c11583f8f735a8cc49b58c58b.zip
cpython-ab0d35d70dfe0b4c11583f8f735a8cc49b58c58b.tar.gz
cpython-ab0d35d70dfe0b4c11583f8f735a8cc49b58c58b.tar.bz2
bpo-46712: share more global strings in deepfreeze (gh-32152)
(for gh-90868)
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/textio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index f45a697..f1cd6d0 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -1959,6 +1959,7 @@ _io_TextIOWrapper_read_impl(textio *self, Py_ssize_t n)
if (chunks != NULL) {
if (result != NULL && PyList_Append(chunks, result) < 0)
goto fail;
+ _Py_DECLARE_STR(empty, "");
Py_XSETREF(result, PyUnicode_Join(&_Py_STR(empty), chunks));
if (result == NULL)
goto fail;