diff options
Diffstat (limited to 'libmproxy/utils.py')
-rw-r--r-- | libmproxy/utils.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/libmproxy/utils.py b/libmproxy/utils.py index 78f74767..22ab4344 100644 --- a/libmproxy/utils.py +++ b/libmproxy/utils.py @@ -61,21 +61,6 @@ def pretty_json(s): return json.dumps(p, sort_keys=True, indent=4).split("\n") -def urldecode(s): - """ - Takes a urlencoded string and returns a list of (key, value) tuples. - """ - return cgi.parse_qsl(s, keep_blank_values=True) - - -def urlencode(s): - """ - Takes a list of (key, value) tuples and returns a urlencoded string. - """ - s = [tuple(i) for i in s] - return urllib.urlencode(s, False) - - def multipartdecode(hdrs, content): """ Takes a multipart boundary encoded string and returns list of (key, value) tuples. @@ -197,13 +182,6 @@ def parse_content_type(c): -def unparse_url(scheme, host, port, path=""): - """ - Returns a URL string, constructed from the specified compnents. - """ - return "%s://%s%s" % (scheme, netlib.utils.hostport(scheme, host, port), path) - - def clean_hanging_newline(t): """ Many editors will silently add a newline to the final line of a |