def urlencode(items):
    try:
        return urllib.urlencode(items)
    except UnicodeEncodeError:
        return urllib.urlencode([(k, smart_str(v)) for k, v in items])
Return a string with the Python expression which ends at the
dataset/ETHPy150Open mozilla/addons-server/src/olympia/amo/utils.py/urlencode--crossover with--dataset/ETHPy150Open francelabs/datafari/windows/python/Lib/idlelib/HyperParser.py/HyperParser.get_expression