diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-03-23 23:40:36 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-03-23 23:40:36 (GMT) |
commit | 708b4dacf4f5c24eb30590ace7fb64d0ef018837 (patch) | |
tree | 54e6e785bcaa9cd1d7ee8ea3abec57c75c55589a /Lib/encodings | |
parent | c723a14bfbba8df45ada5b7054f97d341315ed2b (diff) | |
download | cpython-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')
-rw-r--r-- | Lib/encodings/idna.py | 1 |
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(".") |