mirror of
https://github.com/python/cpython.git
synced 2024-11-23 01:45:25 +08:00
[3.11] gh-111942: Remove an extra incref in textiowrapper_change_encoding (#126542)
This commit is contained in:
parent
8c6885d636
commit
e33b6fccd3
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user