Skip to content

Commit e33b6fc

Browse files
authored
[3.11] gh-111942: Remove an extra incref in textiowrapper_change_encoding (#126542)
1 parent 8c6885d commit e33b6fc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Modules/_io/textio.c

-1
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,6 @@ textiowrapper_change_encoding(textio *self, PyObject *encoding,
13131313
}
13141314
Py_DECREF(codec_info);
13151315

1316-
Py_INCREF(errors);
13171316
Py_SETREF(self->encoding, encoding);
13181317
Py_SETREF(self->errors, errors);
13191318

0 commit comments

Comments
 (0)