From 3d17c045b4c3d09b72bbd95ed78af1ae6f0d98d2 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Thu, 14 May 2020 01:48:38 +0200 Subject: 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. --- Modules/_io/textio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/_io/textio.c') diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c index 1abc9ca6f2..f2c72ebd51 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; } -- cgit v1.2.1