summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2024-03-10 20:19:47 (GMT)
committerGitHub <noreply@github.com>2024-03-10 20:19:47 (GMT)
commitc5fa796619a8cae5a1a8a4a043d05a99adec713d (patch)
tree246bac2231b8beb34749aa980fef592422c47799 /Modules
parent729bfb3105c7ca2ad6150a6207786096732c3b9e (diff)
downloadcpython-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.c4
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;
}