Skip to content

fileinput with inplace=True ignores errors parameter #93157

Closed
@JelleZijlstra

Description

@JelleZijlstra

#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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.10only security fixes3.11only security fixes3.12only security fixestype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions