| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Implement indent() function for in-place pretty-printing of XML trees. | Stefan Behnel | 2019-08-13 | 1 | -0/+13 |
| | | |||||
| * | LP#1838252: Keep the order provided by an OrderedDict that gets passed as ↵ | Stefan Behnel | 2019-07-29 | 1 | -10/+5 |
| | | | | | attrib mapping during element creation. This was broken in 4.4.0. | ||||
| * | Fix some misbehaviour in slice selection and deletion: Large step sizes ↵ | Stefan Behnel | 2019-04-21 | 1 | -0/+2 |
| | | | | | could lead to long running stupid loops. | ||||
| * | Fix some misbehaviour in slice assignments: | Stefan Behnel | 2019-04-21 | 1 | -1/+9 |
| | | | | | | | - Large step sizes could lead to long running stupid loops. - ValueError was not raised when assigning extended slices of the wrong size. - Slices with negative step size could be inserted in the wrong place, too far on the left. | ||||
| * | Refactor duplicate code. | Stefan Behnel | 2019-04-05 | 1 | -0/+18 |
| | | |||||
| * | Exclude absolute Windows (C:\...) file paths from URL escaping since libxml2 ↵ | Stefan Behnel | 2019-03-27 | 1 | -4/+11 |
| | | | | | does not recognise them as file paths and thus does not unescape them. | ||||
| * | Fix C compiler warning about comparing signed to unsigned integers. | Stefan Behnel | 2019-03-27 | 1 | -1/+1 |
| | | |||||
| * | Keep the original dict insertion order in Py3.6+ when setting attributes or ↵ | Stefan Behnel | 2019-03-01 | 1 | -3/+14 |
| | | | | | | | namespaces from a user provided dict. This follows the ElementTree change in Py3.8, see https://bugs.python.org/issue34160. | ||||
| * | Fix crash due to incorrect dict handling for text nodes. | Stefan Behnel | 2019-02-28 | 1 | -1/+3 |
| | | | | | The C doc link needs to be set after removing text from the dict and before putting it there. Thus, it is best to separate the adaptations into two traversals again. | ||||
| * | LP#1814522: Fix a crash when appending a child subtree that contains ↵ | Stefan Behnel | 2019-02-05 | 1 | -2/+19 |
| | | | | | | | | unsubstituted entity references. This is a work-around for a (supposed) bug in libxml2 (https://gitlab.gnome.org/GNOME/libxml2/issues/42), which crashes by running into an infinite recursive loop while traversing the child nodes of the entity reference. A lucky side effect is that the previously duplicated cleanup traversal to a) update the .doc pointers in libxml2 and b) update the dict names in lxml is now replaced by a single traversal, which should speed things up for large subtrees. | ||||
| * | Speed up ascii/non-ascii string detection in isutf8() and funicode() helper ↵ | Stefan Behnel | 2018-10-20 | 1 | -6/+42 |
| | | | | | functions. | ||||
| * | Simplify isinstance | Hugo | 2018-08-26 | 1 | -1/+1 |
| | | |||||
| * | Remove unnecessary backslash | Hugo | 2018-08-25 | 1 | -2/+2 |
| | | |||||
| * | Remove redundant code for Python <= 2.6 | Hugo | 2018-08-25 | 1 | -3/+2 |
| | | |||||
| * | Use f-strings for all string formatting for which it makes sense (i.e. does ↵ | Stefan Behnel | 2018-01-25 | 1 | -22/+12 |
| | | | | | not look unreadable). | ||||
| * | fix C compiler warning about "const" type mismatch | Stefan Behnel | 2017-08-11 | 1 | -0/+1 |
| | | |||||
| * | replace IS_PYTHON3 C macro with IS_PYTHON2 before it starts looking funny in ↵ | Stefan Behnel | 2016-09-03 | 1 | -2/+2 |
| | | | | | Python 4.x :) | ||||
| * | use PyUnicode_FromFormat() also in Py2.x (but not in PyPy which doesn't have it) | Stefan Behnel | 2016-09-03 | 1 | -2/+2 |
| | | |||||
| * | allow None as attribute value only for HTML trees | Stefan Behnel | 2016-07-29 | 1 | -2/+3 |
| | | |||||
| * | allow None as an attribute value, for HTML boolean attributes | Daniel Holth | 2016-07-28 | 1 | -4/+7 |
| | | |||||
| * | re-implement "keep_ns_prefixes" option in cleanup_namespaces() | Stefan Behnel | 2015-09-04 | 1 | -8/+10 |
| | | |||||
| * | Merge pull request #167 from tomkralidis/cleanup_namespaces-keep_nsmap | scoder | 2015-09-04 | 1 | -3/+8 |
| |\ | | | | | add keep_nsmap argument to cleanup_namespaces | ||||
| | * | test on list | Tom Kralidis | 2015-06-14 | 1 | -1/+1 |
| | | | |||||
| | * | pass only ns prefixes | Tom Kralidis | 2015-06-14 | 1 | -4/+4 |
| | | | |||||
| | * | update implemenation, tests | Tom Kralidis | 2015-05-18 | 1 | -1/+2 |
| | | | |||||
| | * | doc change | Tom Kralidis | 2015-05-15 | 1 | -1/+1 |
| | | | |||||
| | * | update everything but the actual implementation change to reflect agreed ↵ | Tom Kralidis | 2015-05-15 | 1 | -1/+5 |
| | | | | | | | | | upon semantics | ||||
| * | | improve error message | Stefan Behnel | 2015-08-21 | 1 | -1/+1 |
| |/ | |||||
| * | use PyUnicode_FromFormat in pypy3 | Stefan Behnel | 2015-04-10 | 1 | -1/+1 |
| | | |||||
| * | minor code cleanup | Stefan Behnel | 2015-04-04 | 1 | -1/+1 |
| | | |||||
| * | speed up removal of unused namespaces by avoiding to traverse ↵ | Stefan Behnel | 2015-03-01 | 1 | -4/+5 |
| | | | | | elements/attributes for which there is nothing to remove | ||||
| * | for better symmetry, use lxml_malloc()/lxml_free() instead of ↵ | Stefan Behnel | 2015-03-01 | 1 | -4/+4 |
| | | | | | lxml_malloc()/PyMem_Free() | ||||
| * | make nsmap evaluation safer by preventing to sort on None and string values ↵ | Stefan Behnel | 2015-03-01 | 1 | -36/+46 |
| | | | | | (fails in Py3) | ||||
| * | make attribute creation order in xmlfile.element() reproducible (same as for ↵ | Stefan Behnel | 2015-03-01 | 1 | -10/+18 |
| | | | | | Element creation) | ||||
| * | make sure we always validate 'node_ns_utf' in _setNodeNamespaces() by ↵ | Stefan Behnel | 2015-02-28 | 1 | -37/+36 |
| | | | | | removing only partially redundant code | ||||
| * | remove useless list size changing | Stefan Behnel | 2015-02-27 | 1 | -4/+6 |
| | | | | | | --HG-- extra : transplant_source : %95%FEhL%84%84V%8B%F4%AB6%09e%C6eg%BB%7EOZ | ||||
| * | declare types that Cython couldn't infer | Stefan Behnel | 2015-02-27 | 1 | -2/+2 |
| | | |||||
| * | refactor duplicate code in _removeUnusedNamespaceDeclarations() | Stefan Behnel | 2015-02-27 | 1 | -45/+34 |
| | | |||||
| * | rename helper function to match more general applicability and fix incorrect ↵ | Stefan Behnel | 2015-02-27 | 1 | -7/+7 |
| | | | | | docstring | ||||
| * | clean up and refactor last commits | Stefan Behnel | 2015-02-21 | 1 | -20/+23 |
| | | |||||
| * | Update name validation. | Olli Pottonen | 2015-02-21 | 1 | -2/+2 |
| | | | | | | Validate names accordingy to XML 1.0 standard fifth edition, instead of the outdated fourth edition. (See also Namespaces in XML 1.0 third edition.) | ||||
| * | On python 2, __repr__ shall return str, not unicode. | Olli Pottonen | 2015-02-21 | 1 | -0/+9 |
| | | |||||
| * | Check all input strings are in XML character range. | Olli Pottonen | 2015-02-21 | 1 | -19/+38 |
| | | |||||
| * | Make _ElementTree.deepcopy() properly handle comments/PI's before doctype. | Olli Pottonen | 2015-02-18 | 1 | -5/+13 |
| | | |||||
| * | accept CDATA wrapped content for tail text | Stefan Behnel | 2014-11-23 | 1 | -16/+16 |
| | | |||||
| * | merge lxml-3.3 branch into master | Stefan Behnel | 2014-08-28 | 1 | -26/+24 |
| |\ | |||||
| | * | refactor some duplicated code | Stefan Behnel | 2014-08-28 | 1 | -18/+16 |
| | | | |||||
| | * | prevent tree cycle creation when adding siblings | Stefan Behnel | 2014-08-28 | 1 | -14/+14 |
| | | | |||||
| | * | PyPy fix | Stefan Behnel | 2014-03-10 | 1 | -1/+2 |
| | | | |||||
| * | | simplify some code | Stefan Behnel | 2014-04-04 | 1 | -4/+2 |
| | | | |||||
