summaryrefslogtreecommitdiffstats
path: root/Lib/xml/etree/ElementTree.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30365: Backport warnings and fix bugs in ElementTree. (#1581)Serhiy Storchaka2017-05-171-2/+8
| | | | | | | | | | | | | | | | | | Running Python with the -3 option now emits deprecation warnings for getchildren() and getiterator() methods of the Element class in the xml.etree.cElementTree module and when pass the html argument to xml.etree.ElementTree.XMLParser(). Fixed a deprecation warning about the doctype() method of the xml.etree.ElementTree.XMLParser class. Now it is emitted only when define the doctype() method in the subclass of XMLParser. Fixed a bug in the test_bug_200708_close test method. An EchoTarget instance was incorrectly passed to XMLParser() as the html argument and silently ignored. Tests no longer failed when use the -m option for running only selected test methods. Checking warnings now is more specific, warnings are expected only when use deprecated features.
* Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-151-1/+1
| | | | This affects documentation and code comments.
* Issue #25688: Fixed file leak in ElementTree.iterparse() raising an error.Serhiy Storchaka2015-11-231-30/+41
|
* Issue #18347: ElementTree's html serializer now preserves the case of ↵Christian Heimes2013-07-041-3/+3
| | | | closing tags.
* Issue #11367: fix documentation of some find* methods in ElementTreeEli Bendersky2013-03-121-7/+5
|
* Describe the default_namespace parameter of ElemetTree.write.Serhiy Storchaka2013-01-131-2/+3
|
* #15970: xml.etree.ElementTree now serializes correctly the empty HTML ↵Ezio Melotti2012-09-191-1/+1
| | | | elements "meta" and "param".
* Issue #2892: preserve iterparse events in case of SyntaxErrorFlorent Xicluna2011-11-011-15/+23
|
* Closes #7334: close source files on ElementTree.parse and iterparse (partial ↵Florent Xicluna2011-10-291-11/+22
| | | | backport of issue #10093 from 3.2).
* Merged revisions 86348 via svnmerge fromSenthil Kumaran2010-11-091-2/+3
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86348 | senthil.kumaran | 2010-11-09 10:36:59 +0800 (Tue, 09 Nov 2010) | 3 lines Fix Issue10205 - XML QName error when different tags have same QName. ........
* Issue #6472: The xml.etree package is updated to ElementTree 1.3. The ↵Florent Xicluna2010-03-111-415/+803
| | | | cElementTree module is updated too.
* Issue #2746: Don't escape ampersands and angle brackets ("&", "<", ">")Antoine Pitrou2010-02-091-2/+2
| | | | | | in XML processing instructions and comments. These raw characters are allowed by the XML specification, and are necessary when outputting e.g. PHP code in a processing instruction. Patch by Neil Muller.
* expunge the xmlcore changes:Fred Drake2006-07-291-0/+1260
| | | | | | | | | | | | | | | | | | | 41667, 41668 - initial switch to xmlcore 47044 - mention of xmlcore in What's New 50687 - mention of xmlcore in the library reference re-apply xmlcore changes to xml: 41674 - line ending changes (re-applied manually), directory props 41677 - add cElementTree wrapper 41678 - PSF licensing for etree 41812 - whitespace normalization 42724 - fix svn:eol-style settings 43681, 43682 - remove Python version-compatibility cruft from minidom 46773 - fix encoding of \r\n\t in attr values in saxutils 47269 - added XMLParser alias for cElementTree compatibility additional tests were added in Lib/test/test_sax.py that failed with the xmlcore changes; these relate to SF bugs #1511497, #1513611
* move the xml package implementation to xmlcore, and adjust the tests toFred Drake2005-12-141-1254/+0
| | | | | test that package, not the xmlcore/PyXML switcheroo fiasco in the xml module/package
* added ElementTree core components to xml.etreeFredrik Lundh2005-12-121-0/+1254