(self)
Read the next bit.
Read the next bit.
Read the next bit .
def read_bit(self):
        """Read the next bit."""
        self.mask >>= 1
        if self.mask <= 0:
            self.current_byte = self.cas.read(1)
            if not self.current_byte:
                raise EndOfTape()
            self.mask = 0x80
        if (ord(self.current_byte) & self.mask == 0):
            return 0
        else:
            return 1
def read_bit ( self ) : self . mask >>= 1 if self . mask <= 0 : self . current_byte = self . cas . read ( 1 ) if not self . current_byte : raise EndOfTape ( ) self . mask = 0x80 if ( ord ( self . current_byte ) & self . mask == 0 ) : return 0 else : return 1