예제 #1
0
파일: encode.py 프로젝트: JDeuce/pyramid
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)
예제 #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)
예제 #3
0
파일: encode.py 프로젝트: AdamG/pyramid
def url_quote(s, safe=''): # bw compat api
    return _url_quote(s, safe=safe)
예제 #4
0
def url_quote(s, safe=''): # bw compat api
    return _url_quote(s, safe=safe)