Esempio n. 1
0
def url_quote(val, safe=''): # bw compat api
    cls = val.__class__
    if cls is text_type:
        val = val.encode('utf-8')
    elif cls is not binary_type:
        val = str(val).encode('utf-8')
    return _url_quote(val, safe=safe)
Esempio n. 2
0
def url_quote(val, safe=''):  # bw compat api
    cls = val.__class__
    if cls is text_type:
        val = val.encode('utf-8')
    elif cls is not binary_type:
        val = str(val).encode('utf-8')
    return _url_quote(val, safe=safe)
Esempio n. 3
0
def url_quote(s, safe=''): # bw compat api
    return _url_quote(s, safe=safe)
Esempio n. 4
0
def url_quote(s, safe=''): # bw compat api
    return _url_quote(s, safe=safe)