def bit_length(self):
        if hasattr(self.data, 'bit_length'):
            return self.data.bit_length()
        else:
            return len(bin(abs(self.data))) - 2
dataset/ETHPy150Open jasonkeene/python-ubersmith/ubersmith/api.py/IntResponse.bit_length/original