Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix indentation from previous commit | Eli Bendersky | 2013-11-28 | 1 | -2/+2 |
| | |||||
* | Issue #19815: Fix segfault when parsing empty namespace declaration. | Eli Bendersky | 2013-11-28 | 1 | -1/+4 |
| | | | | Based on patches by Christian Heimes and Vajrasky Kok | ||||
* | Issue #19356: Avoid using a C variabled named "_self", it's a reserved word ↵ | Antoine Pitrou | 2013-10-23 | 1 | -2/+2 |
| | | | | in some C compilers. | ||||
* | - followup for issue #18997, make _clear_joined_ptr static. | doko@ubuntu.com | 2013-09-18 | 1 | -1/+1 |
| | |||||
* | Issue #18997: fix ElementTree crash with using pickle and __getstate__. | Eli Bendersky | 2013-09-13 | 1 | -26/+24 |
| | | | | Based on report and initial patch from Germán M. Bravo | ||||
* | Add missing check of PyDict_Update()'s return value in _elementtree.c | Christian Heimes | 2013-07-20 | 1 | -1/+2 |
| | | | | CID 719637 | ||||
* | #18480: Add missing PyType_Ready call to _elementtree extension | Ronald Oussoren | 2013-07-19 | 1 | -5/+9 |
| | |||||
* | Issue #13612: handle unknown encodings without a buffer overflow. | Eli Bendersky | 2013-05-25 | 1 | -42/+1 |
| | | | | | | | This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new function - DefaultUnknownEncodingHandler. Based on a patch by Serhiy Storchaka. | ||||
* | Issue #16986: ElementTree now correctly parses a string input not only when | Serhiy Storchaka | 2013-05-22 | 1 | -9/+30 |
| | | | | an internal XML encoding is UTF-8 or US-ASCII. | ||||
* | Issue #17989: fix typo in error message | Eli Bendersky | 2013-05-19 | 1 | -1/+1 |
| | |||||
* | Issue #17901: fix TreeBuilder construction for an explicit element_factory=None | Eli Bendersky | 2013-05-18 | 1 | -1/+1 |
| | | | | Based on report and patch by Aaron Oakley. | ||||
* | Issue #17989: element_setattro returned incorrect error value. | Eli Bendersky | 2013-05-18 | 1 | -8/+8 |
| | | | | This caused an exception to be raised later than expected. | ||||
* | Issue #17736: fix misleading comment in _elementtree.c | Eli Bendersky | 2013-04-22 | 1 | -1/+3 |
| | | | | Patch by Jonas Wagner | ||||
* | Issue #16922: fixed findtext() to return empty Unicode string instead of ↵ | Eli Bendersky | 2013-01-13 | 1 | -1/+1 |
| | | | | | | empty bytes object when there's no text. Patch by Serhiy Storchaka. | ||||
* | Clean trailing whitespace in _elementtree.c | Eli Bendersky | 2013-01-13 | 1 | -4/+4 |
| | |||||
* | Issue #16076: check for return value of PyTuple_New for args (following | Eli Bendersky | 2013-01-12 | 1 | -8/+11 |
| | | | | Coverity report) and cleanup code. | ||||
* | Issue #16076: fix refleak in pickling of Element. | Eli Bendersky | 2013-01-12 | 1 | -11/+5 |
| | | | | Thanks to Ezio Melotti and Daniel Shahaf for the patch. | ||||
* | Issue #16913: Fix Element.itertext()'s handling of text with XML entities. | Eli Bendersky | 2013-01-10 | 1 | -3/+14 |
| | | | | Patch by Serhiy Storchaka | ||||
* | Issue #16076: make _elementtree.Element pickle-able in a way that is compatible | Eli Bendersky | 2013-01-10 | 1 | -3/+177 |
| | | | | | | with the Python version of the class. Patch by Daniel Shahaf. | ||||
* | The get() and iter() are now able to accept keyword arguments. | Eli Bendersky | 2013-01-05 | 1 | -8/+13 |
| | | | | | In conformance with the documentation and the Python version. Patch by Franck Michea. | ||||
* | Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element ↵ | Antoine Pitrou | 2012-10-04 | 1 | -28/+79 |
| | | | | element_factory (fixes a regression in SimpleTAL). | ||||
* | Sanitize and modernize some of the _elementtree code (see issue #16089). | Antoine Pitrou | 2012-10-01 | 1 | -107/+59 |
| | |||||
* | Issue #15144: Fix possible integer overflow when handling pointers as ↵ | Antoine Pitrou | 2012-09-20 | 1 | -1/+1 |
| | | | | | | integer values, by using Py_uintptr_t instead of size_t. Patch by Serhiy Storchaka. | ||||
* | Raise ImportError if pyexpat's version is incompatible | Eli Bendersky | 2012-07-21 | 1 | -3/+5 |
|\ | |||||
| * | Raise ImportError if pyexpat's version is incompatible | Eli Bendersky | 2012-07-21 | 1 | -4/+7 |
| | | |||||
* | | Merge for #14988 | Eli Bendersky | 2012-07-17 | 1 | -5/+1 |
|\ \ | |/ | |||||
| * | ISsue #14988: restore Python 2's behavior of raising ImportError when unable ↵ | Eli Bendersky | 2012-07-17 | 1 | -0/+2 |
| | | | | | | | | to load pyexpat, instead of a SystemError/RuntimeError | ||||
* | | Issue #14055: Add __sizeof__ support to _elementtree. | Martin v. Löwis | 2012-06-17 | 1 | -0/+14 |
| | | |||||
* | | Fix windows compilation problems caused by previous commit. | Eli Bendersky | 2012-06-15 | 1 | -2/+4 |
| | | |||||
* | | Replace the iter/itertext methods of Element in _elementtree with true C ↵ | Eli Bendersky | 2012-06-15 | 1 | -90/+272 |
| | | | | | | | | | | | | 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. | ||||
* | | Fix unterminated keyword array passed to PyArg_ParseTupleAndKeywords | Eli Bendersky | 2012-06-03 | 1 | -2/+2 |
| | | |||||
* | | Issue #14007: implement doctype() method calling in XMLParser of _elementtree. | Eli Bendersky | 2012-06-01 | 1 | -10/+99 |
| | | | | | | | | Includes exposing a doctype handler from expat through pyexpat. | ||||
* | | We're always building _elementtree with USE_PYEXPAT_CAPI, so the #ifdefs in | Eli Bendersky | 2012-06-01 | 1 | -12/+2 |
| | | | | | | | | the code are unnecessary. | ||||
* | | Issue #14007: make XMLParser a real subclassable type exported from ↵ | Eli Bendersky | 2012-06-01 | 1 | -110/+140 |
| | | | | | | | | _elementtree. +cleanups | ||||
* | | Issue #14007: implemented the 'element_factory' feature of TreeBuilder in | Eli Bendersky | 2012-05-30 | 1 | -30/+73 |
| | | | | | | | | _elementtree, with a test. | ||||
* | | Issue #14007: make TreeBuilder an actual type exposed from _elementtree, and ↵ | Eli Bendersky | 2012-05-29 | 1 | -74/+77 |
| | | | | | | | | subclassable. | ||||
* | | Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree. | Eli Bendersky | 2012-05-29 | 1 | -21/+84 |
| | | | | | | | | | | Add attrib keyword to Element and SubElement in _elementtree. Patch developed with Ezio Melotti. | ||||
* | | Issue #14849: setup Element data members to be assignable in subclasses | Eli Bendersky | 2012-05-20 | 1 | -13/+12 |
| | | |||||
* | | Replace bootstrap imports with real C API calls. | Eli Bendersky | 2012-04-05 | 1 | -8/+9 |
| | | |||||
* | | Fix Windows compilation errors | Eli Bendersky | 2012-04-04 | 1 | -2/+4 |
| | | |||||
* | | Fixes and enhancements to _elementtree: | Eli Bendersky | 2012-04-03 | 1 | -21/+44 |
| | | | | | | | | | | | | * Fixed refleak problems when GC collection is run (see messages in issue #14065) * Added weakref support to Element objects | ||||
* | | Issue #14065: Added cyclic GC support to ET.Element | Eli Bendersky | 2012-03-30 | 1 | -15/+48 |
| | | |||||
* | | Issue #13782: streamline argument type-checking in ET.Element | Eli Bendersky | 2012-03-23 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | 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 | ||||
* | | Issue #14207: the ParseError exception raised by _elementtree was made | Eli Bendersky | 2012-03-16 | 1 | -8/+27 |
| | | | | | | | | | | | | | | | | | | | | consistent to the one raised by the Python module (the 'code' attribute was added). In addition, the exception is now documented. Added a test to check that ParseError has the required attributes, and threw away the equivalent doctest which is no longer required. | ||||
* | | Closes Issue #14246: _elementtree parser will now handle io.StringIO | Eli Bendersky | 2012-03-16 | 1 | -1/+22 |
| | | |||||
* | | Issue #14178: Problem deleting slices with steps != +1 in the _elementtree ↵ | Eli Bendersky | 2012-03-09 | 1 | -3/+67 |
| | | | | | | | | | | | | module. Fixed the problem and added some tests. Closes #14178 | ||||
* | | Issue #14007: drop unused TreeBuilder().xml. | Florent Xicluna | 2012-03-05 | 1 | -23/+0 |
| | | |||||
* | | Issue #14128: Exposing Element as an actual type from _elementtree, rather ↵ | Eli Bendersky | 2012-03-04 | 1 | -82/+145 |
| | | | | | | | | | | | | | | | | 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. | ||||
* | | Issue #13988: cElementTree is deprecated and the _elementtree accelerator is ↵ | Florent Xicluna | 2012-02-13 | 1 | -3/+3 |
| | | | | | | | | automatically used whenever available. | ||||
* | | Issue #13988: move the python bootstrap code to cElementTree.py, and remove ↵ | Florent Xicluna | 2012-02-11 | 1 | -232/+2 |
| | | | | | | | | obsolete code for Python 2.4 and 2.5. |