The locale module reference was introduced by
932ff8368 in 2013,
and rendered unused by
710e82630 (gh-23050) in 2020.
_PyIO_State *state = get_io_state(mod);
if (!state->initialized)
return 0;
- Py_VISIT(state->locale_module);
Py_VISIT(state->unsupported_operation);
Py_VISIT(state->PyIncrementalNewlineDecoder_Type);
_PyIO_State *state = get_io_state(mod);
if (!state->initialized)
return 0;
- if (state->locale_module != NULL)
- Py_CLEAR(state->locale_module);
Py_CLEAR(state->unsupported_operation);
Py_CLEAR(state->PyIncrementalNewlineDecoder_Type);
typedef struct {
int initialized;
- PyObject *locale_module;
-
PyObject *unsupported_operation;
/* Types */