(self)
return True
Try to read intro; ensure image not empty.
Try to read intro; ensure image not empty.
Try to read intro ; ensure image not empty .
def read_intro(self):
        """Try to read intro; ensure image not empty."""
        for b in bytearray(self.intro):
            try:
                c = self.read_byte()
            except EndOfTape:
                # empty or short file
                return False
            if c != b:
                break
        else:
            for _ in range(7):
                self.read_bit()
        return True
def read_intro ( self ) : for b in bytearray ( self . intro ) : try : c = self . read_byte ( ) except EndOfTape : # empty or short file return False if c != b : break else : for _ in range ( 7 ) : self . read_bit ( ) return True