summaryrefslogtreecommitdiffstats
path: root/Lib/xml/etree
Commit message (Collapse)AuthorAgeFilesLines
* Issue #20331: Fixed possible FD leaks in various modules:Serhiy Storchaka2014-01-251-5/+4
|\ | | | | | | http.server, imghdr, mailcap, mimetypes, xml.etree.
| * Issue #20331: Fixed possible FD leaks in various modules:Serhiy Storchaka2014-01-251-5/+4
| | | | | | | | http.server, imghdr, mailcap, mimetypes, xml.etree.
* | whatsnew: XMLPullParser, plus some doc updates.R David Murray2014-01-051-1/+1
| | | | | | | | | | | | | | | | | | | | I was confused by the text saying that read_events "iterated", since it actually returns an iterator (that's what a generator does) that the caller must then iterate. So I tidied up the language. I'm not sure what the sentence "Events provided in a previous call to read_events() will not be yielded again." is trying to convey, so I didn't try to fix that. Also fixed a couple more news items.
* | Close #18990: remove root attribute from XMLPullParserNick Coghlan2013-09-281-10/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | - this was an internal implementation detail for iterparse - this has been changed to use a new private method instead - XMLPullParser.close docs are now more explicit about not returning a root element and instead direct users towards read_events - also added missing docstrings and clarified some details related to exactly *when* events are consumed from the internal queue (Initial patch by Stefan Behnel)
* | Issue #17741: Rename IncrementalParser and its methods.Eli Bendersky2013-08-301-16/+20
| | | | | | | | | | | | The new names are hopefully more descriptive and consistent. If you feel you don't agree with this change, *please* read issue 17741 first - there's a lot of discussion in there.
* | Remove the obsolete XMLParser._start/_start_list duality.Eli Bendersky2013-08-261-26/+12
| | | | | | | | | | XMLParser configures expat to report attributes in a list (ordered_attributes), so only _start_list is needed. Rename it to _start and kill _start.
* | Issue #17741: use composition, rather than inheritance, for ↵Antoine Pitrou2013-08-231-6/+8
| | | | | | | | | | | | xml.etree.iterparse's result class. Patch by Stefan Behnel.
* | #18741: merge with 3.3.Ezio Melotti2013-08-171-1/+1
|\ \ | |/
| * #18741: fix more typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-1/+1
| |
* | Merge fix for Issue #17011 from 3.3Eli Bendersky2013-08-041-2/+4
|\ \ | |/
| * Issue #17011: Fix caching of xpath path when namespaces are present.Eli Bendersky2013-08-041-2/+4
| | | | | | | | Thanks to Stefan Behnel for the report and proposed solution & test.
* | Issue #18347: ElementTree's html serializer now preserves the case of ↵Christian Heimes2013-07-041-3/+3
|\ \ | |/ | | | | closing tags.
| * 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/+4
| |\
| | * Issue #11367: fix documentation of some find* methods in ElementTreeEli Bendersky2013-03-121-7/+4
| | |
* | | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-5/+5
| | |
* | | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-5/+5
| | | | | | | | | | | | ModuleNotFoundError.
* | | Get rid of ugly code duplication for ElementTree.parse when the acceleratorEli Bendersky2013-05-201-28/+11
| | | | | | | | | | | | | | | is imported. Instead, ElementTree.parse can look for a special internal method defined by the accelerator.
* | | normalize whitespaceEli Bendersky2013-05-191-4/+0
| | |
* | | Cleanup even more dead codeEli Bendersky2013-05-191-7/+0
| | |
* | | Cleanup more old ET library leftoversEli Bendersky2013-05-191-7/+4
| | |
* | | Issue #17988: remove unused alias for Element and rename the used oneEli Bendersky2013-05-191-18/+6
| | | | | | | | | | | | | | | | | | | | | Renaming to _Element_Py for clarity and moving it to a more logical location. _ElementInterface OTOH is unused and is therefore removed. Close #17988
* | | _elementtree.XMLParser._setevents should support any sequence, not just tuplesEli Bendersky2013-05-191-12/+17
| | | | | | | | | | | | Also clean up some code around this
* | | Remove superfluous try/exceptEli Bendersky2013-04-201-12/+6
| | |
* | | Make license notices more consistent and remove old changelog.Eli Bendersky2013-04-201-4/+3
| | | | | | | | | | | | Also remove unused macro.
* | | Issue #17741: Add ElementTree.IncrementalParser, an event-driven parser for ↵Antoine Pitrou2013-04-181-109/+94
| | | | | | | | | | | | non-blocking applications.
* | | Issue #17516: use comment syntax for comments, instead of multiline stringVictor Stinner2013-03-261-1/+1
| | |
* | | Issue #16954: Add docstrings for ElementTreeEli Bendersky2013-03-091-578/+486
| | | | | | | | | | | | Based on patch by David Lam
* | | Issue #9708: Fix support for iterparse(parser=...) argument per documentation.Eli Bendersky2013-01-241-3/+16
|\ \ \ | |/ / | | | | | | | | | When _elementtree is imported, iterparse is redefined as a class and the parser argument was ommitted. Fix this, and add a docstring to the class.
| * | Issue #9708: Fix support for iterparse(parser=...) argument per documentation.Eli Bendersky2013-01-241-3/+16
| | | | | | | | | | | | | | | When _elementtree is imported, iterparse is redefined as a class and the parser argument was ommitted. Fix this, and add a docstring to the class.
* | | Issue #12323: Strengthen error checking of the position XPath selectorsEli Bendersky2013-01-241-2/+7
| | |
* | | Cleanup the docs ElementTree a bit.Serhiy Storchaka2013-01-131-8/+8
|\ \ \ | |/ /
| * | Describe the default_namespace parameter of ElemetTree.write.Serhiy Storchaka2013-01-131-2/+3
| |\ \ | | |/
| | * Describe the default_namespace parameter of ElemetTree.write.Serhiy Storchaka2013-01-131-2/+3
| | |
* | | Cleanup the docs ElementTree a bit and describe the default_namespace ↵Eli Bendersky2013-01-131-14/+14
| | | | | | | | | | | | parameter. In the code, replace the old outdated Doxygen-ish comment above ElementTree.write by a proper docstring.
* | | Close #14377: Add a new parameter to ElementTree.write and some module-levelEli Bendersky2013-01-131-11/+20
| | | | | | | | | | | | | | | | | | | | | serialization functions - short_empty_elements. It controls how elements without contents are emitted. Patch by Serhiy Storchaka. Feature initially proposed by Ariel Poliak.
* | | Replace IOError with OSError (#16715)Andrew Svetlov2012-12-251-3/+3
| | |
* | | Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element ↵Antoine Pitrou2012-10-041-1/+3
|\ \ \ | |/ / | | | | | | element_factory (fixes a regression in SimpleTAL).
| * | Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element ↵Antoine Pitrou2012-10-041-1/+3
| | | | | | | | | | | | element_factory (fixes a regression in SimpleTAL).
* | | more yield fromPhilip Jenvey2012-10-012-8/+4
|/ / | | | | | | patch by Serhiy Storchaka
* | #15970: merge with 3.2.Ezio Melotti2012-09-191-1/+1
|\ \ | |/
| * #15970: xml.etree.ElementTree now serializes correctly the empty HTML ↵Ezio Melotti2012-09-191-1/+1
| | | | | | | | elements "meta" and "param".
* | fix whitespace woesEli Bendersky2012-07-171-1/+1
| |
* | Optimize tostringlist by taking the stream class outside the function. It's ↵Eli Bendersky2012-07-171-13/+19
| | | | | | | | now 2x faster on short calls. Related to #1767933
* | Preserve the invariant tostring(elem) == b''.join(tostringlist(elem)) and ↵Eli Bendersky2012-07-171-0/+6
| | | | | | | | add a test to make sure it keeps working
* | Close #1767933: Badly formed XML using etree and utf-16. Patch by Serhiy ↵Eli Bendersky2012-07-151-56/+82
| | | | | | | | Storchaka, with some minor fixes by me
* | Minor refactoring in xml.etree.ElementTree doctype parser.Florent Xicluna2012-07-071-2/+2
| |
* | Removed _SimpleElementPath and its flaky test. The test monkey-patches the ↵Eli Bendersky2012-06-151-25/+1
| | | | | | | | module, which causes other failures and fails itself depending on the order tests are run.
* | Replace the iter/itertext methods of Element in _elementtree with true C ↵Eli Bendersky2012-06-151-5/+1
| | | | | | | | | | | | implementations, instead of the bootstrapped Python code. In addition to being cleaner (removing the last remains of the bootstrapping code in _elementtree), this gives a 10x performance boost for iter() on large documents. Also reorganized the tests a bit to be more robust.
* | Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree.Eli Bendersky2012-05-291-0/+3
| | | | | | | | | | Add attrib keyword to Element and SubElement in _elementtree. Patch developed with Ezio Melotti.