diff options
author | Ib Lundgren <ib.lundgren@gmail.com> | 2013-09-12 11:52:32 +0100 |
---|---|---|
committer | Ib Lundgren <ib.lundgren@gmail.com> | 2013-09-12 11:52:32 +0100 |
commit | d128ab21bac98b12790bf566b5d482591e1ce169 (patch) | |
tree | 02587139e68c38b27d0ae23de4592ed0fd0bab06 | |
parent | 4f9c5bf32008ff5d6c34597737d6fca7613dd769 (diff) | |
download | oauthlib-d128ab21bac98b12790bf566b5d482591e1ce169.tar.gz |
Remove obsolete urlencode from oauth 1 utils.
-rw-r--r-- | oauthlib/oauth1/rfc5849/utils.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/oauthlib/oauth1/rfc5849/utils.py b/oauthlib/oauth1/rfc5849/utils.py index 1b452e7..f317447 100644 --- a/oauthlib/oauth1/rfc5849/utils.py +++ b/oauthlib/oauth1/rfc5849/utils.py @@ -66,17 +66,6 @@ def unescape(u): return unquote(u) -def urlencode(query): - """Encode a sequence of two-element tuples or dictionary into a URL query string. - - Operates using an OAuth-safe escape() method, in contrast to urllib.urlencode. - """ - # Convert dictionaries to list of tuples - if isinstance(query, dict): - query = query.items() - return "&".join(['='.join([escape(k), escape(v)]) for k, v in query]) - - def parse_keqv_list(l): """A unicode-safe version of urllib2.parse_keqv_list""" # With Python 2.6, parse_http_list handles unicode fine |