Message188600
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 :-)). |
|
Date |
User |
Action |
Args |
2013-05-06 21:51:08 | vstinner | set | recipients:
+ vstinner, georg.brandl, pitrou, larry, serhiy.storchaka, sconseil |
2013-05-06 21:51:08 | vstinner | set | messageid: <1367877068.89.0.651350235103.issue17915@psf.upfronthosting.co.za> |
2013-05-06 21:51:08 | vstinner | link | issue17915 messages |
2013-05-06 21:51:08 | vstinner | create | |
|