Don't assume data is ASCII in saslprep.

This commit is contained in:
Lance Stout 2012-02-03 16:01:54 +01:00
parent 261a501afc
commit 021c57205f

View file

@ -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:
#