SIGN IN SIGN UP

[3.13] gh-137571: Protect against possible UnboundLocalError in gzip._GzipReader.read() (GH-150222) (GH-150231)

This has not been observed in practice, but we cannot be 100% sure that
it will not happen with some weird gzip data.
(cherry picked from commit 28eac9a7263ad8dcfa9b536aa238549131857e0f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
M
Miss Islington (bot) committed
46cff6be903165f723fb956bdce407de6b201acc
Parent: 1df755c
Committed by GitHub <noreply@github.com> on 5/22/2026, 9:37:57 AM