mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
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.
This commit is contained in:
parent
729bfb3105
commit
c5fa796619
3 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue