def bits_to_int(self, bits):
        '''high level bit list packer'''
        c = 1
        i = 0
        for bit in bits:
            if bit:
                i += 2 ** (c - 1)
            c += 1
        return i
dataset/ETHPy150Open kivy/kivy/kivy/core/image/img_gif.py/GifDecoder.bits_to_int/original