]> granicus.if.org Git - python/commit
[Patch #654421 from Matthew Mueller]
authorAndrew M. Kuchling <amk@amk.ca>
Wed, 5 Feb 2003 21:35:07 +0000 (21:35 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Wed, 5 Feb 2003 21:35:07 +0000 (21:35 +0000)
commit64edd6ac1ddb29f7817ee44e9b376b096ffa1d55
tree1dac9b2c32aed3e7beed2cb29aef687acd355504
parent570e35870a131dc65dde2835972abb6fdf60a117
[Patch #654421 from Matthew Mueller]
  gzip shouldn't raise ValueError on corrupt files

  Currently the gzip module will raise a ValueError if the file was
  corrupt (bad crc or bad size).  I can't see how that applies to
  reading a corrupt file.  IOError seems better, and it's what code
  will likely be looking for.
Lib/gzip.py