mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
Don't assume data is ASCII in saslprep.
This commit is contained in:
parent
261a501afc
commit
021c57205f
1 changed files with 1 additions and 1 deletions
2
sleekxmpp/thirdparty/suelta/saslprep.py
vendored
2
sleekxmpp/thirdparty/suelta/saslprep.py
vendored
|
@ -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:
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue