Gabriel Genellina <gagsl-...@yahoo.com.ar> added the comment: This is the expected behavior; that's why the function takes an "encoding" argument. As it returns a complete XML document, it must be already encoded. Other methods return just document pieces, so str is fine. Probably should be better explained in the documentation.
---------- nosy: +gagenellina _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4973> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com