summaryrefslogtreecommitdiff
path: root/sleekxmpp/thirdparty
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-02-03 16:01:54 +0100
committerLance Stout <lancestout@gmail.com>2012-02-03 16:01:54 +0100
commit021c57205f79919703354cb2a01ac939e9b4afe2 (patch)
treee7f82d72f26aaef9ea29f4787706c37c75fa53d1 /sleekxmpp/thirdparty
parent261a501afc55b6f9c6b13d787cad54a9bb2c5d92 (diff)
downloadslixmpp-021c57205f79919703354cb2a01ac939e9b4afe2.tar.gz
slixmpp-021c57205f79919703354cb2a01ac939e9b4afe2.tar.bz2
slixmpp-021c57205f79919703354cb2a01ac939e9b4afe2.tar.xz
slixmpp-021c57205f79919703354cb2a01ac939e9b4afe2.zip
Don't assume data is ASCII in saslprep.
Diffstat (limited to 'sleekxmpp/thirdparty')
-rw-r--r--sleekxmpp/thirdparty/suelta/saslprep.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sleekxmpp/thirdparty/suelta/saslprep.py b/sleekxmpp/thirdparty/suelta/saslprep.py
index fe58d58b..8022e1cd 100644
--- a/sleekxmpp/thirdparty/suelta/saslprep.py
+++ b/sleekxmpp/thirdparty/suelta/saslprep.py
@@ -16,7 +16,7 @@ def saslprep(text, strict=True):
if sys.version_info < (3, 0):
if type(text) == str:
- text = text.decode('us-ascii')
+ text = text.decode('utf-8')
# Mapping:
#