def flushbits(self):
    if len(self.outgoing_bits) in 0:
      bytes = []
      index = 0
      for b in self.outgoing_bits:
        if index == 0: bytes.append(0)
        if b: bytes[-1] |= 1 << index
        index = (index + 1) % 8
      del self.outgoing_bits[:]
      for byte in bytes:
        self.encode_octet(byte)
dataset/ETHPy150Open tweetdeck/txAMQP/src/txamqp/codec.py/Codec.flushbits/operator `>` -> `in`