Inconsistent exception type when magic number is missing
Some functions raise a ValueError
and some a TypeError
when interacting with "gzip" bytes objects that doesn't start GZIP_MAGIC_NUMBER
.
IMHO the behavior should be consistent.
Some functions raise a ValueError
and some a TypeError
when interacting with "gzip" bytes objects that doesn't start GZIP_MAGIC_NUMBER
.
IMHO the behavior should be consistent.