diff options
author | Michael Terry <michael.terry@canonical.com> | 2012-09-03 11:13:35 -0400 |
---|---|---|
committer | Michael Terry <michael.terry@canonical.com> | 2012-09-03 11:13:35 -0400 |
commit | 56a5c730609b9d8ac4ec4303448ae79c7443216e (patch) | |
tree | 68a53f21e775c0a92ef83d588d2dc26384e608f5 /oauthlib/oauth1 | |
parent | d06f0174e275723b8b68b26d98140cb997daf2c9 (diff) | |
download | oauthlib-56a5c730609b9d8ac4ec4303448ae79c7443216e.tar.gz |
fix some byte/unicode arguments for Python 2.6's benefit
Diffstat (limited to 'oauthlib/oauth1')
-rw-r--r-- | oauthlib/oauth1/rfc5849/signature.py | 2 | ||||
-rw-r--r-- | oauthlib/oauth1/rfc5849/utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/oauthlib/oauth1/rfc5849/signature.py b/oauthlib/oauth1/rfc5849/signature.py index 860e61d..927b60b 100644 --- a/oauthlib/oauth1/rfc5849/signature.py +++ b/oauthlib/oauth1/rfc5849/signature.py @@ -170,7 +170,7 @@ def normalize_base_string_uri(uri): # # .. _`section 3.4.1.3`: http://tools.ietf.org/html/rfc5849#section-3.4.1.3 -def collect_parameters(uri_query=b'', body=[], headers=None, +def collect_parameters(uri_query='', body=[], headers=None, exclude_oauth_signature=True): """**Parameter Sources** diff --git a/oauthlib/oauth1/rfc5849/utils.py b/oauthlib/oauth1/rfc5849/utils.py index f4d1231..a5d7453 100644 --- a/oauthlib/oauth1/rfc5849/utils.py +++ b/oauthlib/oauth1/rfc5849/utils.py @@ -56,7 +56,7 @@ def escape(u): raise ValueError('Only unicode objects are escapable.') # Letters, digits, and the characters '_.-' are already treated as safe # by urllib.quote(). We need to add '~' to fully support rfc5849. - return quote(u, safe='~') + return quote(u, safe=b'~') def unescape(u): |