]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-153037: Make ZstdFile.__next__ raise io.UnsupportedOperation on non-readabl...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 13 Jul 2026 02:51:38 +0000 (04:51 +0200)
committerGitHub <noreply@github.com>
Mon, 13 Jul 2026 02:51:38 +0000 (19:51 -0700)
commit7d8783bd9fa48eed4046fb1ab0d3e4618d52b5f0
treeb79b468fdfafb5df78db4415061b9beecba31f88
parentd419b0245d712656ee71e6c1883e46195e5e7ef9
[3.15] gh-153037: Make ZstdFile.__next__ raise io.UnsupportedOperation on non-readable files (GH-153045) (#153638)

gh-153037: Make ZstdFile.__next__ raise io.UnsupportedOperation on non-readable files (GH-153045)

Make `ZstdFile.__next__` raise `io.UnsupportedOperation` on non-readable files, consistent with other compression modules.
(cherry picked from commit ed716551e13d1e46a5cd17955657d64b8824626a)

Co-authored-by: Ɓukasz <lukaszlapinski7@gmail.com>
Lib/compression/zstd/_zstdfile.py
Lib/test/test_zstd.py
Misc/NEWS.d/next/Library/2026-07-04-20-28-51.gh-issue-153037.XUSp_g.rst [new file with mode: 0644]