From 708b4dacf4f5c24eb30590ace7fb64d0ef018837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Tue, 23 Mar 2004 23:40:36 +0000 Subject: Convert input to a string object. Fixes #909230. Backported 2.3. --- Lib/encodings/idna.py | 1 + 1 file changed, 1 insertion(+) 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(".") -- cgit v0.12