diff options
author | Antoine Pitrou <pitrou@free.fr> | 2018-01-28 17:42:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-28 17:42:31 (GMT) |
commit | 1d896ed2cddada4455f40782e4120249defbfa70 (patch) | |
tree | 622344d12b5c4ebd59fccc346103c17a928e9e1e /Misc | |
parent | 33febfb03998598a35f97b4ef66d33a2d43716cd (diff) | |
download | cpython-1d896ed2cddada4455f40782e4120249defbfa70.zip cpython-1d896ed2cddada4455f40782e4120249defbfa70.tar.gz cpython-1d896ed2cddada4455f40782e4120249defbfa70.tar.bz2 |
[3.6] bpo-32228: Reset raw_pos after unwinding the raw stream (GH-4858) (#5389)
Ensure that ``truncate()`` preserves the file position (as reported by ``tell()``) after writes longer than the buffer size..
(cherry picked from commit 059f58ce938d9c3f0286412a4efb1b9131339421)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2017-12-22-16-47-41.bpo-32228.waPx3q.rst | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2017-12-22-16-47-41.bpo-32228.waPx3q.rst b/Misc/NEWS.d/next/Library/2017-12-22-16-47-41.bpo-32228.waPx3q.rst new file mode 100644 index 0000000..3bbe7c4 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2017-12-22-16-47-41.bpo-32228.waPx3q.rst @@ -0,0 +1 @@ +Ensure that ``truncate()`` preserves the file position (as reported by ``tell()``) after writes longer than the buffer size. |