Eli Bendersky
|
25771b3749
|
Issue #16922: fixed findtext() to return empty Unicode string instead of empty bytes object when there's no text.
Patch by Serhiy Storchaka.
|
2013-01-13 05:26:07 -08:00 |
|
Eli Bendersky
|
4583990143
|
Clean trailing whitespace in _elementtree.c
|
2013-01-13 05:14:47 -08:00 |
|
Eli Bendersky
|
799e3edaf7
|
Issue #16076: check for return value of PyTuple_New for args (following
Coverity report) and cleanup code.
|
2013-01-12 05:42:38 -08:00 |
|
Eli Bendersky
|
b8f6dc855c
|
Issue #16076: fix refleak in pickling of Element.
Thanks to Ezio Melotti and Daniel Shahaf for the patch.
|
2013-01-12 05:20:16 -08:00 |
|
Eli Bendersky
|
e6174ca85e
|
Issue #16913: Fix Element.itertext()'s handling of text with XML entities.
Patch by Serhiy Storchaka
|
2013-01-10 06:27:53 -08:00 |
|
Eli Bendersky
|
698bdb2a6c
|
Issue #16076: make _elementtree.Element pickle-able in a way that is compatible
with the Python version of the class.
Patch by Daniel Shahaf.
|
2013-01-10 06:01:06 -08:00 |
|
Eli Bendersky
|
a873690d2c
|
The get() and iter() are now able to accept keyword arguments.
In conformance with the documentation and the Python version.
Patch by Franck Michea.
|
2013-01-05 06:26:39 -08:00 |
|
Antoine Pitrou
|
ee329318db
|
Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element element_factory (fixes a regression in SimpleTAL).
|
2012-10-04 19:53:29 +02:00 |
|
Antoine Pitrou
|
c194884983
|
Sanitize and modernize some of the _elementtree code (see issue #16089).
|
2012-10-01 23:40:37 +02:00 |
|
Antoine Pitrou
|
ca8aa4acf6
|
Issue #15144: Fix possible integer overflow when handling pointers as integer values, by using Py_uintptr_t instead of size_t.
Patch by Serhiy Storchaka.
|
2012-09-20 20:56:47 +02:00 |
|
Eli Bendersky
|
7b31b1a2a4
|
Raise ImportError if pyexpat's version is incompatible
|
2012-07-21 20:32:39 +03:00 |
|
Eli Bendersky
|
ef391ac982
|
Raise ImportError if pyexpat's version is incompatible
|
2012-07-21 20:28:46 +03:00 |
|
Eli Bendersky
|
b48ff7fdda
|
Merge for #14988
|
2012-07-17 14:25:14 +03:00 |
|
Eli Bendersky
|
66099b0cdc
|
ISsue #14988: restore Python 2's behavior of raising ImportError when unable to load pyexpat, instead of a SystemError/RuntimeError
|
2012-07-17 14:20:38 +03:00 |
|
Martin v. Löwis
|
bce166681c
|
Issue #14055: Add __sizeof__ support to _elementtree.
|
2012-06-17 10:41:22 +02:00 |
|
Eli Bendersky
|
113da64259
|
Fix windows compilation problems caused by previous commit.
|
2012-06-15 07:52:49 +03:00 |
|
Eli Bendersky
|
64d11e60f2
|
Replace the iter/itertext methods of Element in _elementtree with true C 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.
|
2012-06-15 07:42:50 +03:00 |
|
Eli Bendersky
|
c68e1368b5
|
Fix unterminated keyword array passed to PyArg_ParseTupleAndKeywords
|
2012-06-03 06:09:42 +03:00 |
|
Eli Bendersky
|
2b6b73e7e1
|
Issue #14007: implement doctype() method calling in XMLParser of _elementtree.
Includes exposing a doctype handler from expat through pyexpat.
|
2012-06-01 11:32:34 +03:00 |
|
Eli Bendersky
|
20d4174b3d
|
We're always building _elementtree with USE_PYEXPAT_CAPI, so the #ifdefs in
the code are unnecessary.
|
2012-06-01 09:48:37 +03:00 |
|
Eli Bendersky
|
52467b167e
|
Issue #14007: make XMLParser a real subclassable type exported from _elementtree. +cleanups
|
2012-06-01 07:13:08 +03:00 |
|
Eli Bendersky
|
48d358ba86
|
Issue #14007: implemented the 'element_factory' feature of TreeBuilder in
_elementtree, with a test.
|
2012-05-30 17:57:50 +03:00 |
|
Eli Bendersky
|
58d548dff1
|
Issue #14007: make TreeBuilder an actual type exposed from _elementtree, and subclassable.
|
2012-05-29 15:45:16 +03:00 |
|
Eli Bendersky
|
737b173355
|
Issue 14814: Add namespaces keyword arg to find(*) methods in _elementtree.
Add attrib keyword to Element and SubElement in _elementtree.
Patch developed with Ezio Melotti.
|
2012-05-29 06:02:56 +03:00 |
|
Eli Bendersky
|
b20df95827
|
Issue #14849: setup Element data members to be assignable in subclasses
|
2012-05-20 06:33:29 +03:00 |
|