diff options
Diffstat (limited to 'Lib/encodings/idna.py')
-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(".") |