summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slixmpp/stringprep.py2
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 '