Searched refs:BadGzipFile (Results 1 – 5 of 5) sorted by relevance
117 class BadGzipFile(OSError): class436 raise BadGzipFile('Not a gzipped file (%r)' % magic)441 raise BadGzipFile('Unknown compression method')525 raise BadGzipFile("CRC check failed %s != %s" % (hex(crc32),528 raise BadGzipFile("Incorrect length of data produced")
426 self.assertTrue(issubclass(gzip.BadGzipFile, OSError))432 self.assertRaises(gzip.BadGzipFile, file.readlines)
62 .. exception:: BadGzipFile
1191 Add a :exc:`~gzip.BadGzipFile` exception to the :mod:`gzip` module.
839 A :exc:`~gzip.BadGzipFile` exception is now raised instead of :exc:`OSError`