summaryrefslogtreecommitdiffstats
path: root/Lib/encodings/idna.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2004-03-23 23:40:36 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2004-03-23 23:40:36 (GMT)
commit708b4dacf4f5c24eb30590ace7fb64d0ef018837 (patch)
tree54e6e785bcaa9cd1d7ee8ea3abec57c75c55589a /Lib/encodings/idna.py
parentc723a14bfbba8df45ada5b7054f97d341315ed2b (diff)
downloadcpython-708b4dacf4f5c24eb30590ace7fb64d0ef018837.zip
cpython-708b4dacf4f5c24eb30590ace7fb64d0ef018837.tar.gz
cpython-708b4dacf4f5c24eb30590ace7fb64d0ef018837.tar.bz2
Convert input to a string object. Fixes #909230.
Backported 2.3.
Diffstat (limited to 'Lib/encodings/idna.py')
-rw-r--r--Lib/encodings/idna.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/encodings/idna.py b/Lib/encodings/idna.py
index 37462db..4814215 100644
--- a/Lib/encodings/idna.py
+++ b/Lib/encodings/idna.py
@@ -171,6 +171,7 @@ class Codec(codecs.Codec):
labels = dots.split(input)
else:
# Must be ASCII string
+ input = str(input)
unicode(input, "ascii")
labels = input.split(".")