summaryrefslogtreecommitdiff
path: root/oauthlib/common.py
diff options
context:
space:
mode:
authorIb Lundgren <ib.lundgren@gmail.com>2014-05-28 14:20:04 +0100
committerIb Lundgren <ib.lundgren@gmail.com>2014-05-28 14:20:04 +0100
commitf59b02389ec2daa84b75606120057bf5ae8f131a (patch)
treec99c5dd1ec4a0ecce0009ac897752bde972ba671 /oauthlib/common.py
parent56c6c38a99bb35b1065fa650fa8937122e47ab57 (diff)
downloadoauthlib-f59b02389ec2daa84b75606120057bf5ae8f131a.tar.gz
Set default encoding type to UTF-8 for to_unicode.
Diffstat (limited to 'oauthlib/common.py')
-rw-r--r--oauthlib/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oauthlib/common.py b/oauthlib/common.py
index c1e36dc..5ab647c 100644
--- a/oauthlib/common.py
+++ b/oauthlib/common.py
@@ -319,7 +319,7 @@ def safe_string_equals(a, b):
return result == 0
-def to_unicode(data, encoding):
+def to_unicode(data, encoding='UTF-8'):
"""Convert a number of different types of objects to unicode."""
if isinstance(data, unicode_type):
return data