https://github.com/python/cpython/commit/e33b6fccd3969dc2351f6a64d7b0362c36c2be96
commit: e33b6fccd3969dc2351f6a64d7b0362c36c2be96
branch: 3.11
author: Petr Viktorin <[email protected]>
committer: pablogsal <[email protected]>
date: 2024-11-08T13:26:57+01:00
summary:
[3.11] gh-111942: Remove an extra incref in textiowrapper_change_encoding
(#126542)
files:
M Modules/_io/textio.c
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);
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]