(integer)
return integer.to_bytes((integer.bit_length() + 7) // 8, 'big')
Convert an int to bytes
    :param integer:
    :return: bytes
Convert an int to bytes
    :param integer:
    :return: bytes
Convert an int to bytes : param integer : : return : bytes
def int_to_bytes(integer):
    """
    Convert an int to bytes
    :param integer:
    :return: bytes
    """
    return integer.to_bytes((integer.bit_length() + 7) // 8, 'big')
def int_to_bytes ( integer ) : return integer . to_bytes ( ( integer . bit_length ( ) + 7 ) // 8 , 'big' )