]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Convert input to a string object. Fixes #909230.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 23 Mar 2004 23:42:54 +0000 (23:42 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 23 Mar 2004 23:42:54 +0000 (23:42 +0000)
Lib/encodings/idna.py

index 37462dbe11549bebcdcdbff9d019a037d10f61bd..48142157fdf5a7fef8ddbaa6520e258a2e8d4675 100644 (file)
@@ -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(".")