Message250930
Here is a patch which changes the code to respect the letter case specified by the user, although it still compares the special strings "unicode", "us-ascii", and "utf-8" case-insensitively, and the default encoding is still lowercase. Let me know what you think.
>>> tree = ElementTree(Element('hello', {'beer': 'good'}))
>>> tree.write(stdout.buffer, encoding="UTF-8", xml_declaration=True); print()
<?xml version='1.0' encoding='UTF-8'?>
<hello beer="good" />
>>> tree.write(stdout.buffer, encoding="UTF-8"); print()
<hello beer="good" />
>>> tree.write(stdout.buffer, xml_declaration=True); print()
<?xml version='1.0' encoding='us-ascii'?>
<hello beer="good" /> |
|
Date |
User |
Action |
Args |
2015-09-18 02:39:41 | martin.panter | set | recipients:
+ martin.panter, zimeon |
2015-09-18 02:39:41 | martin.panter | set | messageid: <1442543981.41.0.968158547051.issue25047@psf.upfronthosting.co.za> |
2015-09-18 02:39:41 | martin.panter | link | issue25047 messages |
2015-09-18 02:39:41 | martin.panter | create | |
|