#25272 by @methane added encoding and errors parameters to fileinput.FileInput, but ignored them in the case where inplace=True is passed. Later #25648 added use of encoding in this branch, but not errors. I don't see why errors shouldn't also be used in that branch, but maybe I'm missing something.
#25272 by @methane added
encodinganderrorsparameters tofileinput.FileInput, but ignored them in the case whereinplace=Trueis passed. Later #25648 added use ofencodingin this branch, but noterrors. I don't see whyerrorsshouldn't also be used in that branch, but maybe I'm missing something.