def quote_u_u(s):
    if type(s) in (list, tuple):
        u8parts = (part.encode('UTF-8') for part in s)
        return u'/'.join(urllib.quote(p, safe='').decode('UTF-8')
                         for p in u8parts)
    else:
        return urllib.quote(s.encode('UTF-8')).decode('UTF-8')
Quote a unicode string s using %-encoding.
dataset/ETHPy150Open njr0/fish/fish/fishlib.py/quote_u_u