(self)
Read all the files and check the CRC.
Read all the files and check the CRC.
Read all the files and check the CRC .
def testzip(self):
        """Read all the files and check the CRC."""
        chunk_size = 2 ** 20
        for zinfo in self.filelist:
            try:
                # Read by chunks, to avoid an OverflowError or a
                # MemoryError with very large embedded files.
                with self.open(zinfo.filename, "r") as f:
                    while f.read(chunk_size):     # Check CRC-32
                        pass
            except BadZipFile:
                return zinfo.filename
def testzip ( self ) : chunk_size = 2 ** 20 for zinfo in self . filelist : try : # Read by chunks, to avoid an OverflowError or a # MemoryError with very large embedded files. with self . open ( zinfo . filename , "r" ) as f : while f . read ( chunk_size ) : # Check CRC-32 pass except BadZipFile : return zinfo . filename