summaryrefslogtreecommitdiffstats
path: root/Objects
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 /Objects
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 'Objects')
-rw-r--r--Objects/unicodeobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index d46a52c..dd0c022 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -258,6 +258,7 @@ static int unicode_is_singleton(PyObject *unicode);
// Return a borrowed reference to the empty string singleton.
static inline PyObject* unicode_get_empty(void)
{
+ _Py_DECLARE_STR(empty, "");
return &_Py_STR(empty);
}