mirror of
https://github.com/python/cpython.git
synced 2025-09-13 20:27:05 +00:00
Issue #9548: Add a minimal "_bootlocale" module that is imported by the _io module instead of the full locale module.
This commit is contained in:
parent
73abc527eb
commit
fd4722cacf
6 changed files with 49 additions and 22 deletions
|
@ -546,7 +546,7 @@ _PyIO_get_locale_module(_PyIO_State *state)
|
|||
}
|
||||
Py_CLEAR(state->locale_module);
|
||||
}
|
||||
mod = PyImport_ImportModule("locale");
|
||||
mod = PyImport_ImportModule("_bootlocale");
|
||||
if (mod == NULL)
|
||||
return NULL;
|
||||
state->locale_module = PyWeakref_NewRef(mod, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue