]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-153037: Make ZstdFile.__next__ raise io.UnsupportedOperation on non-readable files...
authorŁukasz <lukaszlapinski7@gmail.com>
Mon, 13 Jul 2026 02:15:53 +0000 (04:15 +0200)
committerGitHub <noreply@github.com>
Mon, 13 Jul 2026 02:15:53 +0000 (19:15 -0700)
commited716551e13d1e46a5cd17955657d64b8824626a
treeb501ec8c893d6b68a4b0638f5512e63bd90a6aa2
parent832bc0b0ea20c2fade5d764e084a2caa09f09dd6
gh-153037: Make ZstdFile.__next__ raise io.UnsupportedOperation on non-readable files (#153045)

Make `ZstdFile.__next__` raise `io.UnsupportedOperation` on non-readable files, consistent with other compression modules.
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]