def read_bit(self):
if not self.bitcount:<EOL><INDENT>self.bits = ord(self.input.read(<NUM_LIT:1>))<EOL>self.bitcount = <NUM_LIT:8><EOL><DEDENT>result = (self.bits & <NUM_LIT:1>) == <NUM_LIT:1><EOL>self.bits >>= <NUM_LIT:1><EOL>self.bitcount -= <NUM_LIT:1><EOL>return result<EOL>
Read a single boolean value.