tanbro added the comment: and in line 249, changes: if isinstance(ctype, unicode): ctype = ctype.encode(default_encoding) # omit in 3.x! ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue21138> _______________________________________