Serhiy Storchaka added the comment: Here is a patch which adds explicit checks for codecs stream writers and adds tests for these cases. The tests are not entirely honest, they test only that XMLGenerator works with some specially prepared streams. XMLGenerator doesn't work with a stream with arbitrary encoding and errors handler.
---------- keywords: +patch Added file: http://bugs.python.org/file30164/XMLGenerator_codecs_stream.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17915> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com