This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients georg.brandl, larry, pitrou, sconseil, serhiy.storchaka, vstinner
Date 2013-05-06.21:51:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367877068.89.0.651350235103.issue17915@psf.upfronthosting.co.za>
In-reply-to
Content
Extracted test from report.txt. Test with Python 3.4:

$ ./python test_codecs.py 
Traceback (most recent call last):
  File "test_codecs.py", line 7, in <module>
    xml.startDocument()
  File "/home/haypo/prog/python/default/Lib/xml/sax/saxutils.py", line 148, in startDocument
    self._encoding)
  File "/home/haypo/prog/python/default/Lib/codecs.py", line 699, in write
    return self.writer.write(data)
  File "/home/haypo/prog/python/default/Lib/codecs.py", line 355, in write
    data, consumed = self.encode(object, self.errors)
TypeError: Can't convert 'bytes' object to str implicitly

_gettextwriter() of xml.sax.saxutils does not recognize codecs classes. (See also the PEP 400 :-)).
History
Date User Action Args
2013-05-06 21:51:08vstinnersetrecipients: + vstinner, georg.brandl, pitrou, larry, serhiy.storchaka, sconseil
2013-05-06 21:51:08vstinnersetmessageid: <1367877068.89.0.651350235103.issue17915@psf.upfronthosting.co.za>
2013-05-06 21:51:08vstinnerlinkissue17915 messages
2013-05-06 21:51:08vstinnercreate