bitio.py
def readbit(self):
        '''Reads one bit and returns as 1 or 0.'''
        if self.bcount == 0:
            a = self.input.read(1)
            if a:
                self.accumulator = a[0]
                self.bcount = 8
            else:
                raise EOFError('End of file while reading bits')
        self.bcount -= 1
        return (self.accumulator >> self.bcount) & 1
Reads one bit and returns as 1 or 0.
Reads one bit and returns as 1 or 0.
Reads one bit and returns as 1 or 0 .
def readbit(self):
        if self.bcount == 0:
            a = self.input.read(1)
            if a:
                self.accumulator = a[0]
                self.bcount = 8
            else:
                raise EOFError('End of file while reading bits')
        self.bcount -= 1
        return (self.accumulator >> self.bcount) & 1
def readbit ( self ) : if self . bcount == 0 : a = self . input . read ( 1 ) if a : self . accumulator = a [ 0 ] self . bcount = 8 else : raise EOFError ( 'End of file while reading bits' ) self . bcount -= 1 return ( self . accumulator >> self . bcount ) & 1
Reads one bit and returns as 1 or 0.
Reads one bit and returns as 1 or 0 .
'''Reads one bit and returns as 1 or 0.'''
self