[issue4997] xml.sax.saxutils.XMLGenerator should write to io.RawIOBase.
Craig Holmquist
report at bugs.python.org
Thu Jul 23 00:02:26 CEST 2009
Craig Holmquist <craigholm at gmail.com> added the comment:
Patch attached. This patch doesn't actually restrict the output object
to RawIOBase (that wouldn't work well, since files opened as binary are
actually derived from BufferedIOBase). Instead, it just assumes the
output object has a 'write' method that accepts a single bytes argument.
Also, XMLGenerator no longer needs to check if the input is str or unicode.
----------
keywords: +patch
Added file: http://bugs.python.org/file14541/xmlgen.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4997>
_______________________________________
More information about the Python-bugs-list
mailing list