]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35950: Raise UnsupportedOperation in BufferedReader.truncate() (GH-18586)
authorBerker Peksag <berker.peksag@gmail.com>
Fri, 21 Feb 2020 17:57:26 +0000 (20:57 +0300)
committerGitHub <noreply@github.com>
Fri, 21 Feb 2020 17:57:26 +0000 (09:57 -0800)
commitfd5116c0e77aec05f67fb24f10562ac920648035
treee980fc8e6aa1ed8d62312fb17dbf01935c1e6e04
parentd4d17fd2cf69e7c8f4cd03fbf2d575370945b952
bpo-35950: Raise UnsupportedOperation in BufferedReader.truncate() (GH-18586)

The truncate() method of io.BufferedReader() should raise
UnsupportedOperation when it is called on a read-only
io.BufferedReader() instance.

https://bugs.python.org/issue35950

Automerge-Triggered-By: @methane
Lib/_pyio.py
Lib/test/test_io.py
Misc/NEWS.d/next/Library/2020-02-21-02-42-41.bpo-35950.9G3-wl.rst [new file with mode: 0644]
Modules/_io/bufferedio.c