summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2020-02-21 17:57:26 (GMT)
committerGitHub <noreply@github.com>2020-02-21 17:57:26 (GMT)
commitfd5116c0e77aec05f67fb24f10562ac920648035 (patch)
treee980fc8e6aa1ed8d62312fb17dbf01935c1e6e04 /Misc
parentd4d17fd2cf69e7c8f4cd03fbf2d575370945b952 (diff)
downloadcpython-fd5116c0e77aec05f67fb24f10562ac920648035.zip
cpython-fd5116c0e77aec05f67fb24f10562ac920648035.tar.gz
cpython-fd5116c0e77aec05f67fb24f10562ac920648035.tar.bz2
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
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2020-02-21-02-42-41.bpo-35950.9G3-wl.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-02-21-02-42-41.bpo-35950.9G3-wl.rst b/Misc/NEWS.d/next/Library/2020-02-21-02-42-41.bpo-35950.9G3-wl.rst
new file mode 100644
index 0000000..92e3b23
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-02-21-02-42-41.bpo-35950.9G3-wl.rst
@@ -0,0 +1,2 @@
+Raise :exc:`io.UnsupportedOperation` in :meth:`io.BufferedReader.truncate`
+when it is called on a read-only :class:`io.BufferedReader` instance.