def putBit(self, bit):
        if self.length == len(self.buffer) * 8:
            self.buffer += [0] * self.inclements
        if bit:
            self.buffer[self.length // 8] |= (0x80 >> (self.length % 8) )
        self.length += 1
dataset/ETHPy150Open mozillazg/ShortURL/shorturl/libs/qrcode.py/BitBuffer.putBit/original