summaryrefslogtreecommitdiffstats
path: root/Lib/xml
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.
* bpo-30264: ExpatParser now closes the source (#1476)Victor Stinner2017-05-051-3/+22
| | | | | | | ExpatParser.parse() of xml.sax.xmlreader now closes the source: close the file object or the urllib object if source is a string (not an open file-like object). Add test_parse_close_source() unit test.
* English spelling and grammar fixesMartin Panter2016-07-111-1/+1
|
* Correct “an” → “a” with “Unicode”, “user”, “UTF”, etcMartin Panter2016-04-151-1/+1
| | | | This affects documentation and code comments.
* Issue #10131: Fixed deep copying of minidom documents. Based on patchSerhiy Storchaka2015-11-261-3/+3
| | | | by Marian Ganisin.
* Issue #25688: Fixed file leak in ElementTree.iterparse() raising an error.Serhiy Storchaka2015-11-231-30/+41
|
* Issue #24125: Saved error's line and column numbers when an error is occuredSerhiy Storchaka2015-05-061-2/+13
| | | | during closing expatreader. Fixed a regression introduced in issue #23865.
* Issue #23865: close() methods in multiple modules now are idempotent and moreSerhiy Storchaka2015-04-101-6/+8
| | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured.
* Issue #21990: Cleanup unnecessary inner class definition in saxutils.Raymond Hettinger2014-07-251-5/+8
|
* Issue #20331: Fixed possible FD leaks in various modules:Serhiy Storchaka2014-01-251-8/+7
| | | | SimpleHTTPServer, imghdr, mailcap, mimetypes, xml.etree.
* remove duplicate method (closes #19127)Benjamin Peterson2013-09-291-3/+0
|
* Issue #18347: ElementTree's html serializer now preserves the case of ↵Christian Heimes2013-07-041-3/+3
| | | | closing tags.
* Issue #17606: Fixed support of encoded byte strings in the XMLGeneratorSerhiy Storchaka2013-05-121-2/+6
| | | | | characters() and ignorableWhitespace() methods. Original patch by Sebastian Ortiz Vasquez.
* Issue #11367: fix documentation of some find* methods in ElementTreeEli Bendersky2013-03-121-7/+5
|
* Issue #1470548: Do not buffer XMLGenerator output.Serhiy Storchaka2013-02-251-3/+7
| | | | Add test for fragment producing with XMLGenerator.
* Issue #1470548: XMLGenerator now works with UTF-16 and UTF-32 encodings.Serhiy Storchaka2013-02-101-33/+49
|
* Issue #11159: SAX parser now supports unicode file names.Serhiy Storchaka2013-02-022-6/+27
|
* #11379: rephrase minidom documentation to use the term "minimal" instead of ↵Ezio Melotti2013-01-221-2/+3
| | | | "lightweight". Patch by Éric Araujo.
* Describe the default_namespace parameter of ElemetTree.write.Serhiy Storchaka2013-01-131-2/+3
|
* Issue #16714: use 'raise' exceptions, don't 'throw'.Andrew Svetlov2012-12-182-4/+4
| | | | Patch by Serhiy Storchaka.
* #15970: xml.etree.ElementTree now serializes correctly the empty HTML ↵Ezio Melotti2012-09-191-1/+1
| | | | elements "meta" and "param".
* #4147: minidom's toprettyxml no longer adds whitespace around a text node ↵Ezio Melotti2011-11-181-5/+9
| | | | when it is the only child of an element. Initial patch by Dan Kenigsberg.
* 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).
* #4147: minidom's toprettyxml no longer adds whitespace to text nodes.R David Murray2011-10-011-2/+4
| | | | Patch by Dan Kenigsberg.
* Fix closes Issue11439 - Handle the SVN Keywords in 2.7 by replacing them ↵Senthil Kumaran2011-07-281-1/+1
| | | | with a high number so that code relying on them does not break.
* #11565: Fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-162-2/+2
|
* #11515: fix several typos. Patch by Piotr Kasprzyk.Ezio Melotti2011-03-151-1/+1
|
* Merged revisions 85546-85547 via svnmerge fromGeorg Brandl2010-11-261-5/+4
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85546 | georg.brandl | 2010-10-15 19:58:45 +0200 (Fr, 15 Okt 2010) | 1 line #5762: fix handling of empty namespace in minidom, which would result in AttributeError on toxml(). ........ r85547 | georg.brandl | 2010-10-15 20:00:35 +0200 (Fr, 15 Okt 2010) | 1 line #6098: Refrain from claiming DOM level 3 conformance in minidom. ........
* 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. ........
* Merged revisions 85858 via svnmerge fromAntoine Pitrou2010-10-271-0/+6
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r85858 | antoine.pitrou | 2010-10-27 20:33:30 +0200 (mer., 27 oct. 2010) | 5 lines Issue #5027: The standard `xml` namespace is now understood by xml.sax.saxutils.XMLGenerator as being bound to http://www.w3.org/XML/1998/namespace. Patch by Troy J. Farrell. ........
* Merged revisions 82757-82758,82760-82764 via svnmerge fromGeorg Brandl2010-10-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82757 | georg.brandl | 2010-07-10 10:58:37 +0200 (Sa, 10 Jul 2010) | 1 line Fix markup. ........ r82758 | georg.brandl | 2010-07-10 12:23:40 +0200 (Sa, 10 Jul 2010) | 1 line Emphasize role of count for Pascal string. ........ r82760 | georg.brandl | 2010-07-10 12:39:57 +0200 (Sa, 10 Jul 2010) | 1 line #3214: improve description of duck-typing in glossary. ........ r82761 | georg.brandl | 2010-07-10 13:40:13 +0200 (Sa, 10 Jul 2010) | 1 line #1434090: properly append child in expatbuilder doctype handler. ........ r82762 | georg.brandl | 2010-07-10 13:51:06 +0200 (Sa, 10 Jul 2010) | 1 line #8338: fix outdated class name. ........ r82763 | georg.brandl | 2010-07-10 14:01:34 +0200 (Sa, 10 Jul 2010) | 1 line #8456: fix signature of sqlite3.connect(). ........ r82764 | georg.brandl | 2010-07-10 14:20:38 +0200 (Sa, 10 Jul 2010) | 1 line #8564: update docs on integrating doctest/unittest with unittest(2) test discovery. ........
* Merged revisions 83864 via svnmerge fromFlorent Xicluna2010-08-091-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83864 | florent.xicluna | 2010-08-09 01:08:41 +0200 (lun., 09 août 2010) | 2 lines Fix xml.etree.ElementInclude to include the tail of the current node. Issue #6231 ........
* Merged revisions 83152 via svnmerge fromAndrew M. Kuchling2010-07-251-0/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83152 | andrew.kuchling | 2010-07-25 19:38:47 -0400 (Sun, 25 Jul 2010) | 1 line #777884: make .normalize() do nothing for childless nodes, instead of raising an exception ........
* Issue #6472: The xml.etree package is updated to ElementTree 1.3. The ↵Florent Xicluna2010-03-114-545/+1038
| | | | cElementTree module is updated too.
* issue#6442 use in operator instead of has_keyJack Diederich2010-02-231-1/+1
|
* 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.
* replace has_key with 'in' operatorBenjamin Peterson2009-10-094-8/+8
|
* death to old CVS keywordBenjamin Peterson2009-10-091-6/+0
|
* #4490 Fix sample code run by "python -m xml.sax.xmlreader"Amaury Forgeot d'Arc2009-06-221-3/+3
|
* Issue #2170: refactored xml.dom.minidom.normalize, increasing bothR. David Murray2009-04-091-18/+11
| | | | its clarity and its speed.
* Issue 2235: Py3k warnings are now emitted for classes that will no longer ↵Nick Coghlan2008-08-111-0/+1
| | | | inherit a__hash__ implementation from a parent class in Python 3.x. The standard library and test suite have been updated to not emit these warnings.
* Remove dict.has_key() usage in xml.sax to silence warnings under -3.Brett Cannon2008-08-042-4/+4
|
* Remove dict.has_key() usage in xml.dom.minidom to silence warnings whileBrett Cannon2008-08-041-4/+4
| | | | running under -3.
* Issue #1390: Raise ValueError in toxml when an invalid comment wouldMartin v. Löwis2008-05-231-0/+2
| | | | otherwise be produced.
* #2503 make singletons compared with "is" not == or !=Benjamin Peterson2008-03-291-1/+1
| | | | Thanks to Wummel for the patch
* #1433694: minidom's .normalize() failed to set .nextSibling for last element.Andrew M. Kuchling2008-02-231-0/+2
| | | | Fix by Malte Helmert
* Issue 1290. CharacterData.__repr__ was constructing a stringFacundo Batista2007-10-241-1/+1
| | | | in response that keeped having a non-ascii character.
* Patch 1463026: Support default namespace in XMLGenerator.Martin v. Löwis2007-02-121-16/+19
| | | | Fixes #847665. Will backport.
* expunge the xmlcore changes:Fred Drake2006-07-2922-0/+7402
| | | | | | | | | | | | | | | | | | | 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