cffi_utils/py2to3.py
def get_rand_bytes(encoding='latin1', l=64, avoid=[]):
    '''
    encoding-->str: one of ENCODINGS
    l-->int: length of unicode str
    avoid-->list of int: to void (unprintable chars etc)
    Returns-->bytes representing unicode str of the requested encoding
    '''
    return encode(
        get_rand_str(encoding=encoding, l=l, avoid=avoid),
        encoding=encoding
    )
def get_rand_bytes(encoding='latin1', l=64, avoid=[]):
    '''
    encoding-->str: one of ENCODINGS
    l-->int: length of unicode str
    avoid-->list of int: to void (unprintable chars etc)
    Returns-->bytes representing unicode str of the requested encoding
    '''
    return encode(
        get_rand_str(encoding=encoding, l=l, avoid=avoid),
        encoding=encoding
    )
def get_rand_bytes ( encoding = 'latin1' , l = 64 , avoid = [ ] ) : return encode ( get_rand_str ( encoding = encoding , l = l , avoid = avoid ) , encoding = encoding )
encoding-->str: one of ENCODINGS
    l-->int: length of unicode str
    avoid-->list of int: to void (unprintable chars etc)
    Returns-->bytes representing unicode str of the requested encoding
encoding -- > str : one of ENCODINGS l -- > int : length of unicode str avoid -- > list of int : to void ( unprintable chars etc ) Returns -- > bytes representing unicode str of the requested encoding