diff options
author | Victor Stinner <vstinner@python.org> | 2024-03-10 20:19:47 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-10 20:19:47 (GMT) |
commit | c5fa796619a8cae5a1a8a4a043d05a99adec713d (patch) | |
tree | 246bac2231b8beb34749aa980fef592422c47799 /Modules | |
parent | 729bfb3105c7ca2ad6150a6207786096732c3b9e (diff) | |
download | cpython-c5fa796619a8cae5a1a8a4a043d05a99adec713d.zip cpython-c5fa796619a8cae5a1a8a4a043d05a99adec713d.tar.gz cpython-c5fa796619a8cae5a1a8a4a043d05a99adec713d.tar.bz2 |
gh-116417: Fix make check-c-globals for _testlimitedcapi (#116570)
* Remove unused '_testcapimodule' global in Modules/_testcapi/unicode.c.
* Update c-analyzer to not use the internal C API in
_testlimitedcapi.c.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_testcapi/unicode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Modules/_testcapi/unicode.c b/Modules/_testcapi/unicode.c index a10183d..d0954bb 100644 --- a/Modules/_testcapi/unicode.c +++ b/Modules/_testcapi/unicode.c @@ -3,8 +3,6 @@ #include "parts.h" #include "util.h" -static struct PyModuleDef *_testcapimodule = NULL; // set at initialization - static PyObject * codec_incrementalencoder(PyObject *self, PyObject *args) { @@ -2098,8 +2096,6 @@ static PyMethodDef TestMethods[] = { int _PyTestCapi_Init_Unicode(PyObject *m) { - _testcapimodule = PyModule_GetDef(m); - if (PyModule_AddFunctions(m, TestMethods) < 0) { return -1; } |