

def _bit_size(number):
    '\n    Returns the number of bits required to hold a specific long number.\n    '
    if (number < 0):
        raise ValueError(('Only nonnegative numbers possible: %s' % number))
    if (number == 0):
        return 0
    bits = 0
    while number:
        bits += 1
        number >>= 1
    return number

dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/rsa/common.py _bit_size/VarMisuse@64/114 `bits`->`number`