[issue15296] Minidom can't create ASCII representation

2012-07-12 Thread Eli Bendersky
Eli Bendersky added the comment: Fixed in 3.3 Thanks for the patch -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue15296] Minidom can't create ASCII representation

2012-07-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b97cea795d8 by Eli Bendersky in branch 'default': Issue #15296: Fix minidom.toxml/toprettyxml for non-unicode encodings. Patch by Serhiy Storchaka, with some minor style adjustments by me. http://hg.python.org/cpython/rev/7b97cea795d8 --

[issue15296] Minidom can't create ASCII representation

2012-07-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Serhiy - why did you remove that documentation bit? Because it's not relevant anymore. With patch you will never get UnicodeError exceptions in case of unrepresentable text data. -- ___ Python tracker

[issue15296] Minidom can't create ASCII representation

2012-07-12 Thread Eli Bendersky
Eli Bendersky added the comment: Serhiy - why did you remove that documentation bit? -- ___ Python tracker ___ ___ Python-bugs-list m

[issue15296] Minidom can't create ASCII representation

2012-07-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +eli.bendersky stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue15296] Minidom can't create ASCII representation

2012-07-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : Minidom can parse ASCII-encoded XML data, but can't create it. >>> from xml.dom.minidom import parseString >>> doc = parseString(b'>> encoding="us-ascii"?>€') >>> doc.toxml('us-ascii') Traceback (most recent call last): File "", line 1, in File "/home/