diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-12-27 15:48:42 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2017-12-27 15:48:42 +0100 |
commit | c6443af29a9c8ef0ca47232015159c28cb05fb97 (patch) | |
tree | abb7820d37be349d20c587f7b3f8b44fba12e7b6 | |
parent | d73f56a7af697b534c2bcd2e411430d5e04ee44c (diff) | |
download | slixmpp-c6443af29a9c8ef0ca47232015159c28cb05fb97.tar.gz slixmpp-c6443af29a9c8ef0ca47232015159c28cb05fb97.tar.bz2 slixmpp-c6443af29a9c8ef0ca47232015159c28cb05fb97.tar.xz slixmpp-c6443af29a9c8ef0ca47232015159c28cb05fb97.zip |
stringprep: Make pure-Python punycode() return bytes.
Fixes #3366.
-rw-r--r-- | slixmpp/stringprep.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slixmpp/stringprep.py b/slixmpp/stringprep.py index 99506d78..672c63b7 100644 --- a/slixmpp/stringprep.py +++ b/slixmpp/stringprep.py @@ -114,7 +114,7 @@ def punycode(domain): if char in ILLEGAL_CHARS: raise StringprepError - domain_parts.append(label) + domain_parts.append(label.encode('ascii')) return b'.'.join(domain_parts) logging.getLogger(__name__).warning('Using slower stringprep, consider ' |