[3.11] gh-111942: Remove an extra incref in textiowrapper_change_encoding (#126542)

This commit is contained in:
Petr Viktorin 2024-11-08 13:26:57 +01:00 committed by GitHub
parent 8c6885d636
commit e33b6fccd3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);