bpo-1613500: Don't hardcode output file mode in fileinput.FileInput (GH-12986)

This commit is contained in:
Berker Peksag 2019-04-29 17:55:39 +03:00 committed by GitHub
parent 88c0937056
commit be6dbfb43b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 2 deletions

View file

@ -0,0 +1,3 @@
:class:`fileinput.FileInput` now uses the input file mode to correctly set
the output file mode (previously it was hardcoded to ``'w'``) when
``inplace=True`` is passed to its constructor.