From e33b6fccd3969dc2351f6a64d7b0362c36c2be96 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Fri, 8 Nov 2024 13:26:57 +0100 Subject: [PATCH] [3.11] gh-111942: Remove an extra incref in textiowrapper_change_encoding (#126542) --- Modules/_io/textio.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c index ba69e2afd27570..e9dd85f1ea1850 100644 --- a/Modules/_io/textio.c +++ b/Modules/_io/textio.c @@ -1313,7 +1313,6 @@ textiowrapper_change_encoding(textio *self, PyObject *encoding, } Py_DECREF(codec_info); - Py_INCREF(errors); Py_SETREF(self->encoding, encoding); Py_SETREF(self->errors, errors);