Beispiel #1
0
def legacy_url_escape(string):
    # convert into a list of octets
    return quote_plus(string)
Beispiel #2
0
def url_escape(string):
    # convert into a list of octets
    string = string.encode("utf8")
    return quote_plus(string)