diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2019-04-29 14:55:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 14:55:39 (GMT) |
commit | be6dbfb43b89989ccc83fbc4c5234f50f44c47ad (patch) | |
tree | 421acfea7d743934f09a3ed793a49914ed05bb05 /Misc | |
parent | 88c093705615c50c47fdd9ab976803f73de7e308 (diff) | |
download | cpython-be6dbfb43b89989ccc83fbc4c5234f50f44c47ad.zip cpython-be6dbfb43b89989ccc83fbc4c5234f50f44c47ad.tar.gz cpython-be6dbfb43b89989ccc83fbc4c5234f50f44c47ad.tar.bz2 |
bpo-1613500: Don't hardcode output file mode in fileinput.FileInput (GH-12986)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-04-27-21-09-33.bpo-1613500.Ogp4P0.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-04-27-21-09-33.bpo-1613500.Ogp4P0.rst b/Misc/NEWS.d/next/Library/2019-04-27-21-09-33.bpo-1613500.Ogp4P0.rst new file mode 100644 index 0000000..4501819 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-04-27-21-09-33.bpo-1613500.Ogp4P0.rst @@ -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. |