]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:30 +0000 (04:51 +0200)
committerGitHub <noreply@github.com>
Mon, 13 Jul 2026 02:51:30 +0000 (19:51 -0700)
commit368aebd1b5560ea589bef87a6e08760b6bbb4961
treedfd50e02c667c465501e780b05a922d45dca0b2f
parentbb29dc2e750c83fbf0369388a81cb02cb3a34f08
[3.14] gh-153037: Make ZstdFile.__next__ raise io.UnsupportedOperation on non-readable files (GH-153045) (#153639)

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]