def _quote(s, encoding='utf-8'):
    if isinstance(s, unicode):
        s = s.encode(encoding)
    return urllib.quote(s)
Url quote as str.
dataset/ETHPy150Open michaelliao/transwarp/transwarp/web.py/_quote