def quote_plus(s, safe=''):
    if ' ' in s:
        s = quote(s, safe + ' ')
        return s.replace(' ', '+')
    return quote(s, safe)
Quote the query fragment of a URL; replacing ' ' with '+'
dataset/ETHPy150Open kleientertainment/ds_mod_tools/pkg/win32/Python27/Lib/urllib.py/quote_plus