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)
def url_quote(s, safe=''): # bw compat api return _url_quote(s, safe=safe)