Serhiy Storchaka storch...@gmail.com 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
Roundup Robot devn...@psf.upfronthosting.co.za 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.
Eli Bendersky eli...@gmail.com added the comment:
Fixed in 3.3
Thanks for the patch
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15296
___
Eli Bendersky eli...@gmail.com added the comment:
Serhiy - why did you remove that documentation bit?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15296
___
New submission from Serhiy Storchaka storch...@gmail.com:
Minidom can parse ASCII-encoded XML data, but can't create it.
from xml.dom.minidom import parseString
doc = parseString(b'?xml version=1.0
encoding=us-ascii?foo#x20ac;/foo')
doc.toxml('us-ascii')
Traceback (most recent call last):
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +eli.bendersky
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15296
___