Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b14b51

Browse files
gh-101819: Remove unused 'locale_module' from _io state (#104246)
The locale module reference was introduced by932ff83 in 2013,and rendered unused by710e826 (gh-23050) in 2020.
1 parentde7f694 commit3b14b51

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

‎Modules/_io/_iomodule.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,6 @@ iomodule_traverse(PyObject *mod, visitproc visit, void *arg) {
580580
_PyIO_State*state=get_io_state(mod);
581581
if (!state->initialized)
582582
return0;
583-
Py_VISIT(state->locale_module);
584583
Py_VISIT(state->unsupported_operation);
585584

586585
Py_VISIT(state->PyIncrementalNewlineDecoder_Type);
@@ -605,8 +604,6 @@ iomodule_clear(PyObject *mod) {
605604
_PyIO_State*state=get_io_state(mod);
606605
if (!state->initialized)
607606
return0;
608-
if (state->locale_module!=NULL)
609-
Py_CLEAR(state->locale_module);
610607
Py_CLEAR(state->unsupported_operation);
611608

612609
Py_CLEAR(state->PyIncrementalNewlineDecoder_Type);

‎Modules/_io/_iomodule.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ extern PyModuleDef _PyIO_Module;
143143

144144
typedefstruct {
145145
intinitialized;
146-
PyObject*locale_module;
147-
148146
PyObject*unsupported_operation;
149147

150148
/* Types */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp