(self)
Read the next bit.
Read the next bit.
Read the next bit .
def read_bit(self):
        """Read the next bit."""
        try:
            length_up, length_dn = next(self.read_half), next(self.read_half)
        except StopIteration:
            self.read_half = self._gen_read_halfpulse()
            raise EndOfTape()
        if (length_up > self.halflength_max or length_dn > self.halflength_max or
                length_up < self.halflength_min or length_dn < self.halflength_min):
            return None
        elif length_up >= self.halflength_cut:
            return 1
        else:
            return 0
def read_bit ( self ) : try : length_up , length_dn = next ( self . read_half ) , next ( self . read_half ) except StopIteration : self . read_half = self . _gen_read_halfpulse ( ) raise EndOfTape ( ) if ( length_up > self . halflength_max or length_dn > self . halflength_max or length_up < self . halflength_min or length_dn < self . halflength_min ) : return None elif length_up >= self . halflength_cut : return 1 else : return 0