Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) | Brett Cannon | 2013-07-04 | 1 | -5/+5 |
| | |||||
* | Issue #18200: Update the stdlib (except tests) to use | Brett Cannon | 2013-06-14 | 1 | -5/+5 |
| | | | | ModuleNotFoundError. | ||||
* | Get rid of ugly code duplication for ElementTree.parse when the accelerator | Eli Bendersky | 2013-05-20 | 1 | -28/+11 |
| | | | | | is imported. Instead, ElementTree.parse can look for a special internal method defined by the accelerator. | ||||
* | normalize whitespace | Eli Bendersky | 2013-05-19 | 1 | -4/+0 |
| | |||||
* | Cleanup even more dead code | Eli Bendersky | 2013-05-19 | 1 | -7/+0 |
| | |||||
* | Cleanup more old ET library leftovers | Eli Bendersky | 2013-05-19 | 1 | -7/+4 |
| | |||||
* | Issue #17988: remove unused alias for Element and rename the used one | Eli Bendersky | 2013-05-19 | 1 | -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 tuples | Eli Bendersky | 2013-05-19 | 1 | -12/+17 |
| | | | | Also clean up some code around this | ||||
* | Remove superfluous try/except | Eli Bendersky | 2013-04-20 | 1 | -12/+6 |
| | |||||
* | Make license notices more consistent and remove old changelog. | Eli Bendersky | 2013-04-20 | 1 | -4/+3 |
| | | | | Also remove unused macro. | ||||
* | Issue #17741: Add ElementTree.IncrementalParser, an event-driven parser for ↵ | Antoine Pitrou | 2013-04-18 | 1 | -109/+94 |
| | | | | non-blocking applications. | ||||
* | Issue #17516: use comment syntax for comments, instead of multiline string | Victor Stinner | 2013-03-26 | 1 | -1/+1 |
| | |||||
* | Issue #16954: Add docstrings for ElementTree | Eli Bendersky | 2013-03-09 | 1 | -578/+486 |
| | | | | Based on patch by David Lam | ||||
* | Issue #9708: Fix support for iterparse(parser=...) argument per documentation. | Eli Bendersky | 2013-01-24 | 1 | -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 Bendersky | 2013-01-24 | 1 | -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 selectors | Eli Bendersky | 2013-01-24 | 1 | -2/+7 |
| | | |||||
* | | Cleanup the docs ElementTree a bit. | Serhiy Storchaka | 2013-01-13 | 1 | -8/+8 |
|\ \ | |/ | |||||
| * | Describe the default_namespace parameter of ElemetTree.write. | Serhiy Storchaka | 2013-01-13 | 1 | -2/+3 |
| |\ | |||||
| | * | Describe the default_namespace parameter of ElemetTree.write. | Serhiy Storchaka | 2013-01-13 | 1 | -2/+3 |
| | | | |||||
* | | | Cleanup the docs ElementTree a bit and describe the default_namespace ↵ | Eli Bendersky | 2013-01-13 | 1 | -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-level | Eli Bendersky | 2013-01-13 | 1 | -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 Svetlov | 2012-12-25 | 1 | -3/+3 |
| | | | |||||
* | | | Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element ↵ | Antoine Pitrou | 2012-10-04 | 1 | -1/+3 |
|\ \ \ | |/ / | | | | | | | element_factory (fixes a regression in SimpleTAL). | ||||
| * | | Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element ↵ | Antoine Pitrou | 2012-10-04 | 1 | -1/+3 |
| | | | | | | | | | | | | element_factory (fixes a regression in SimpleTAL). | ||||
* | | | more yield from | Philip Jenvey | 2012-10-01 | 2 | -8/+4 |
|/ / | | | | | | | patch by Serhiy Storchaka | ||||
* | | #15970: merge with 3.2. | Ezio Melotti | 2012-09-19 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #15970: xml.etree.ElementTree now serializes correctly the empty HTML ↵ | Ezio Melotti | 2012-09-19 | 1 | -1/+1 |
| | | | | | | | | elements "meta" and "param". | ||||
* | | fix whitespace woes | Eli Bendersky | 2012-07-17 | 1 | -1/+1 |
| | | |||||
* | | Optimize tostringlist by taking the stream class outside the function. It's ↵ | Eli Bendersky | 2012-07-17 | 1 | -13/+19 |
| | | | | | | | | now 2x faster on short calls. Related to #1767933 | ||||
* | | Preserve the invariant tostring(elem) == b''.join(tostringlist(elem)) and ↵ | Eli Bendersky | 2012-07-17 | 1 | -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 Bendersky | 2012-07-15 | 1 | -56/+82 |
| | | | | | | | | Storchaka, with some minor fixes by me | ||||
* | | Minor refactoring in xml.etree.ElementTree doctype parser. | Florent Xicluna | 2012-07-07 | 1 | -2/+2 |
| | | |||||
* | | Removed _SimpleElementPath and its flaky test. The test monkey-patches the ↵ | Eli Bendersky | 2012-06-15 | 1 | -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 Bendersky | 2012-06-15 | 1 | -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 Bendersky | 2012-05-29 | 1 | -0/+3 |
| | | | | | | | | | | Add attrib keyword to Element and SubElement in _elementtree. Patch developed with Ezio Melotti. | ||||
* | | Issue #13782: streamline argument type-checking in ET.Element | Eli Bendersky | 2012-03-23 | 1 | -4/+8 |
| | | | | | | | | | | | | | | | | append, extend and insert now consistently type-check their argument in both the C and Python implementations, and raise TypeError for non-Element argument. Added tests | ||||
* | | Flatten nested try ... finally, try ... except. | Florent Xicluna | 2012-03-05 | 1 | -6/+5 |
| | | |||||
* | | Issue #14007: accept incomplete TreeBuilder objects (missing ↵ | Florent Xicluna | 2012-03-05 | 1 | -41/+40 |
| | | | | | | | | start/end/data/close) for the Python implementation as well. Add disabled tests for the doctype() method. | ||||
* | | Issue #14128: Exposing Element as an actual type from _elementtree, rather ↵ | Eli Bendersky | 2012-03-04 | 1 | -1/+0 |
| | | | | | | | | | | | | | | | | than a factory function. This makes the C implementation more aligned with the Python implementation. Also added some tests to ensure that Element is now a type and that it can be subclassed. | ||||
* | | fix the _namespace_map cleanup for cElementTree tests. | Florent Xicluna | 2012-02-16 | 1 | -0/+2 |
| | | |||||
* | | Issue #13988: cElementTree is deprecated and the _elementtree accelerator is ↵ | Florent Xicluna | 2012-02-13 | 2 | -156/+88 |
| | | | | | | | | automatically used whenever available. | ||||
* | | Issue #13988: move the python bootstrap code to cElementTree.py, and remove ↵ | Florent Xicluna | 2012-02-11 | 1 | -0/+150 |
|/ | | | | obsolete code for Python 2.4 and 2.5. | ||||
* | Closes #2892: preserve iterparse events in case of SyntaxError. | Florent Xicluna | 2011-11-01 | 1 | -15/+23 |
| | |||||
* | Issue #12451: The XInclude default loader of xml.etree now decodes files from | Victor Stinner | 2011-06-30 | 1 | -4/+5 |
| | | | | | | UTF-8 instead of the locale encoding if the encoding is not specified. It now also opens XML files for the parser in binary mode instead of the text mode to avoid encoding issues. | ||||
* | #10777: fix iteration over dict keys while mutating the dict. | Georg Brandl | 2010-12-28 | 1 | -1/+1 |
| | |||||
* | Guard against rogue tuples. | Georg Brandl | 2010-12-09 | 1 | -1/+1 |
| | |||||
* | #10661: give QName a nicer repr. | Georg Brandl | 2010-12-09 | 1 | -0/+2 |
| | |||||
* | Fix Issue10205 - XML QName error when different tags have same QName. | Senthil Kumaran | 2010-11-09 | 1 | -2/+3 |
| | |||||
* | Issue #10093: ResourceWarnings are now issued when files and sockets are | Antoine Pitrou | 2010-10-29 | 1 | -11/+22 |
| | | | | | deallocated without explicit closing. These warnings are silenced by default, except in pydebug mode. | ||||
* | Fix xml.etree.ElementInclude to include the tail of the current node. Issue ↵ | Florent Xicluna | 2010-08-08 | 1 | -1/+1 |
| | | | | #6231 |