Skip to content

Commit

Permalink
[3.11] pythongh-111942: Remove an extra incref in textiowrapper_chang…
Browse files Browse the repository at this point in the history
…e_encoding (python#126542)
  • Loading branch information
encukou authored Nov 8, 2024
1 parent 8c6885d commit e33b6fc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Modules/_io/textio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit e33b6fc

Please sign in to comment.