Commit 708b4dac authored by Martin v. Löwis's avatar Martin v. Löwis

Convert input to a string object. Fixes #909230.

Backported 2.3.
parent c723a14b
......@@ -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(".")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment