def urlencodeall(str):
    if not str:
        return ""

    return string.join(['%' + s.encode('hex') for s in str], '')
Adds 'upload_data' specific options to the 'parser' passed in.
dataset/ETHPy150Open benadida/helios-server/helios/utils.py/urlencodeall--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/appcfg.py/AppCfgApp._PerformUploadOptions