[issue4997] xml.sax.saxutils.XMLGenerator should write to io.RawIOBase.
Antoine Pitrou
report at bugs.python.org
Wed Aug 5 12:59:33 CEST 2009
Antoine Pitrou <pitrou at free.fr> added the comment:
You shouldn't remove the defaulting behaviour for `out`, but use
`sys.stdout.buffer` instead.
Bonus points if you add a test so that this kind of bug doesn't go
unnoticed again.
PS: it's ironic that the default encoding here is iso-8859-1. This piece
of code is really getting old.
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4997>
_______________________________________
More information about the Python-bugs-list
mailing list