Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(3)

#27940: xml.etree: Avoid XML declaration for the "ascii" encoding

Can't Edit
Can't Publish+Mail
Start Review
Created:
3 years, 7 months ago by vstinner
Modified:
3 years, 7 months ago
Reviewers:
storchaka+cpython
CC:
scoder, haypo, storchaka
Visibility:
Public.

Patch Set 1 #

Total comments: 1

Patch Set 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
Lib/test/test_xml_etree.py View 1 8 chunks +59 lines, -7 lines 0 comments Download
Lib/xml/etree/ElementTree.py View 1 2 chunks +26 lines, -14 lines 0 comments Download

Messages

Total messages: 1
storchaka
3 years, 7 months ago #1
https://bugs.python.org/review/27940/diff/18321/Lib/xml/etree/ElementTree.py
File Lib/xml/etree/ElementTree.py (right):

https://bugs.python.org/review/27940/diff/18321/Lib/xml/etree/ElementTree.py#...
Lib/xml/etree/ElementTree.py:762: enc_lower = codecs.lookup(enc_lower).name
This is needed only if method == "xml" and not xml_declaration.
Sign in to reply to this message.

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+