mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +00:00
bpo-1613500: Don't hardcode output file mode in fileinput.FileInput (GH-12986)
This commit is contained in:
parent
88c0937056
commit
be6dbfb43b
3 changed files with 16 additions and 2 deletions
|
|
@ -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.
|
||||
Loading…
Add table
Add a link
Reference in a new issue