summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-05-13 23:11:54 (GMT)
committerGitHub <noreply@github.com>2020-05-13 23:11:54 (GMT)
commitd6fb53fe42d83a10f1372dd92ffaa6a01d2feffb (patch)
treed8ad748d0965c536d7cf2139f6ca1e6cf25c6d75 /Objects
parentd72ea605218bbee6ae46648997d9bb76d0fba460 (diff)
downloadcpython-d6fb53fe42d83a10f1372dd92ffaa6a01d2feffb.zip
cpython-d6fb53fe42d83a10f1372dd92ffaa6a01d2feffb.tar.gz
cpython-d6fb53fe42d83a10f1372dd92ffaa6a01d2feffb.tar.bz2
bpo-39465: Remove _PyUnicode_ClearStaticStrings() from C API (GH-20078)
Remove the _PyUnicode_ClearStaticStrings() function from the C API. Make the function fully private (declare it with "static").
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 826298c..34b747e 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -2289,8 +2289,8 @@ _PyUnicode_FromId(_Py_Identifier *id)
return id->object;
}
-void
-_PyUnicode_ClearStaticStrings()
+static void
+unicode_clear_static_strings(void)
{
_Py_Identifier *tmp, *s = static_strings;
while (s) {
@@ -16196,7 +16196,7 @@ _PyUnicode_Fini(PyThreadState *tstate)
Py_CLEAR(unicode_latin1[i]);
}
#endif
- _PyUnicode_ClearStaticStrings();
+ unicode_clear_static_strings();
}
_PyUnicode_FiniEncodings(tstate);