diff options
author | Victor Stinner <vstinner@python.org> | 2020-05-13 23:48:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-13 23:48:38 (GMT) |
commit | 3d17c045b4c3d09b72bbd95ed78af1ae6f0d98d2 (patch) | |
tree | 5d137440f0cdf1312b7cc0b25516490faf42d711 /Modules | |
parent | 75cd8e48c62c97fdb9d9a94fd2335be06084471d (diff) | |
download | cpython-3d17c045b4c3d09b72bbd95ed78af1ae6f0d98d2.zip cpython-3d17c045b4c3d09b72bbd95ed78af1ae6f0d98d2.tar.gz cpython-3d17c045b4c3d09b72bbd95ed78af1ae6f0d98d2.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_io/textio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c index 1abc9ca..f2c72eb 100644 --- a/Modules/_io/textio.c +++ b/Modules/_io/textio.c @@ -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; } |