mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-40521: Add PyInterpreterState.unicode (GH-20081)
Move PyInterpreterState.fs_codec into a new PyInterpreterState.unicode structure. Give a name to the fs_codec structure and use this structure in unicodeobject.c.
This commit is contained in:
parent
75cd8e48c6
commit
3d17c045b4
3 changed files with 48 additions and 40 deletions
|
@ -1007,7 +1007,7 @@ io_check_errors(PyObject *errors)
|
|||
|
||||
/* Avoid calling PyCodec_LookupError() before the codec registry is ready:
|
||||
before_PyUnicode_InitEncodings() is called. */
|
||||
if (!interp->fs_codec.encoding) {
|
||||
if (!interp->unicode.fs_codec.encoding) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue