cffi_utils/py2to3.py
def hex(x):
    '''
    x-->bytes | bytearray
    Returns-->bytes: hex-encoded
    '''
    if isinstance(x, bytearray):
        x = bytes(x)
    return encode(x, 'hex')
def hex(x):
    '''
    x-->bytes | bytearray
    Returns-->bytes: hex-encoded
    '''
    if isinstance(x, bytearray):
        x = bytes(x)
    return encode(x, 'hex')
def hex ( x ) : if isinstance ( x , bytearray ) : x = bytes ( x ) return encode ( x , 'hex' )
x-->bytes | bytearray
    Returns-->bytes: hex-encoded
x -- > bytes | bytearray Returns -- > bytes : hex - encoded