Craig Holmquist <craigh...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue4997>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to