bpo-6584: Add a BadGzipFile exception to the gzip module by ZackerySpytz · Pull Request #13022 · python/cpython
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 34.5k
Merged
serhiy-storchaka merged 2 commits intopython:masterfrom
May 13, 2019Merged
bpo-6584: Add a BadGzipFile exception to the gzip module#13022
serhiy-storchaka merged 2 commits intopython:masterfrom
bpo-6584: Add a BadGzipFile exception to the gzip module#13022
serhiy-storchaka merged 2 commits intopython:masterfrom
Conversation
Copy link Copy Markdown
Contributor
Co-Authored-By: Filip Gruszczyński gruszczy@gmail.com
Co-Authored-By: Michele Orrù maker@tumbolandia.net
Co-Authored-By: Filip Gruszczyński <gruszczy@gmail.com> Co-Authored-By: Michele Orrù <maker@tumbolandia.net>
the-knights-who-say-ni
added
the
CLA signed
label
bedevere-bot
added
the
awaiting review
label
Copy link Copy Markdown
Contributor Author
ZackerySpytz
commented
Apr 30, 2019
ZackerySpytz commented
Apr 30, 2019EOFError can be raised in some cases in the gzip module, and this was added to match with
bz2 and lzma (https://bugs.python.org/issue1159051 / cc0172c). I don't think these cases should be replaced with BadGzipFile.
auvipy approved these changes May 2, 2019
bedevere-bot
added
awaiting core review
and removed
awaiting review
labels
Copy link Copy Markdown
Member
serhiy-storchaka
commented
May 2, 2019
serhiy-storchaka commented
May 2, 2019It should be documented clearly that BadGzipFile is not the only exception raised by corrupted gzip files. EOFError and zlib.error also can be raised.
Copy link Copy Markdown
Contributor Author
ZackerySpytz
commented
May 2, 2019
ZackerySpytz commented
May 2, 2019@serhiy-storchaka Thank you for your comment, Serhiy! EOFError and zlib.error are now mentioned in the gzip documentation. Please take a look.
serhiy-storchaka approved these changes May 2, 2019
bedevere-bot
removed
the
awaiting core review
label
Copy link Copy Markdown
Contributor
csabella
commented
May 13, 2019
csabella commented
May 13, 2019@serhiy-storchaka, is this ready to be merged? Thanks!
serhiy-storchaka
merged commit
cf599f6
into
python:master
Copy link Copy Markdown
Member
serhiy-storchaka
commented
May 13, 2019
serhiy-storchaka commented
May 13, 2019It was ready to merged. I just gave a chance to other core devs to make a review.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment