summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* | | Keep the original dict insertion order in Py3.6+ when setting attributes or ↵Stefan Behnel2019-03-012-4/+15
| | | | | | | | | | | | | | | | | | namespaces from a user provided dict. This follows the ElementTree change in Py3.8, see https://bugs.python.org/issue34160.
* | | Fix docstring.Stefan Behnel2019-03-011-1/+1
| | |
* | | Add a "keep_tail=True" option to Element.clear() to cater for a common need ↵Stefan Behnel2019-03-012-3/+13
| | | | | | | | | | | | in document-style XML/HTML.
* | | Try to stabilise a garbage collection test a little better.Stefan Behnel2019-03-011-2/+4
| | |
* | | Simplify Element.clear() and reduce overhead in the attribute clearing code.Stefan Behnel2019-03-012-11/+10
|/ /
* | Fix crash due to incorrect dict handling for text nodes.Stefan Behnel2019-02-282-16/+23
| | | | | | | | 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.
* | Make sure doc links are updated also for non-element nodes.Stefan Behnel2019-02-281-0/+2
| |
* | Improve cleanup handling when an exception is raised during document adaptation.Stefan Behnel2019-02-281-0/+1
| |
* | Add some tests for tree modification while iterating.Stefan Behnel2019-02-281-7/+56
| |
* | Avoid instantiating node iterators when it's easy to see that they will be ↵Stefan Behnel2019-02-281-0/+11
| | | | | | | | empty.
* | Replace old Pyrex property syntax with @property decorators for read-only ↵Stefan Behnel2019-02-2311-537/+542
| | | | | | | | properties, and resolve some Cython warnings.
* | Also set .doc field of attribute children (if any) during subtree migration.Stefan Behnel2019-02-061-0/+8
| |
* | Replace obfuscated loop with a helper function that is called twice for two ↵Stefan Behnel2019-02-061-43/+43
| | | | | | | | different things.
* | Disable a test under Windows that depends on library linking.Stefan Behnel2019-02-061-1/+3
| |
* | LP#1814522: Fix a crash when appending a child subtree that contains ↵Stefan Behnel2019-02-054-2/+53
| | | | | | | | | | | | | | 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.
* | Actually use "language_level=2" everywhere for better Py2 compatibility.Stefan Behnel2018-12-025-5/+5
| |
* | Fix compile problem due to language_level=3: "basestring" must still refer ↵Stefan Behnel2018-12-021-1/+1
| | | | | | | | to "str/unicode" in Py2.
* | Set explicit Cython language levels for compiled modules (Cython suggests to ↵Stefan Behnel2018-12-029-0/+15
| | | | | | | | make them explicit).
* | Speed up sax.py by converting ElementTreeProducer into an extension type and ↵Stefan Behnel2018-12-021-0/+14
| | | | | | | | inlining its internal method calls.
* | Cleanups for #267: avoid failure on min([]), tune some code constructs for ↵Stefan Behnel2018-12-021-20/+28
| | | | | | | | faster compilation.
* | Further updates to the namespace changes when saxifyingLennart Regebro2018-11-261-23/+18
| |
* | Merge branch 'master' into masterStefan Behnel2018-11-235-129/+234
|\ \
| * | Simplify RNG parsing in ISO-Schematron setup code.Stefan Behnel2018-11-231-2/+2
| | |
| * | Make <properties> tag in ISO-Schematron RNG optional, diverging from the ↵Stefan Behnel2018-11-231-1/+4
| | | | | | | | | | | | 2016 version of the standard.
| * | Update ISO-Schematron RNG schema to 2016 specification fromStefan Behnel2018-11-231-10/+94
| | | | | | | | | | | | http://standards.iso.org/ittf/PubliclyAvailableStandards/c055982_ISO_IEC_19757-3_2016.zip
| * | Update iso-schematron to 2013 (latest) version, now MIT licensed.Stefan Behnel2018-11-232-116/+134
| | |
| * | Fix signature of helper function to avoid C compiler warnings.Stefan Behnel2018-11-231-1/+1
| | |
* | | Merge branch 'master' into masterLennart Regebro2018-11-235-12/+51
|\ \ \ | |/ /
| * | Clarify docstring: passing 'unicode' as encoding name into tostring() is ↵Stefan Behnel2018-11-161-3/+3
| | | | | | | | | | | | more common than passing the unicode/str function.
| * | LP#1799755: Fix ABC imports from collections package to resolve a ↵Stefan Behnel2018-10-242-2/+5
| | | | | | | | | | | | DeprecationWarning in Py3.7.
| * | Speed up ascii/non-ascii string detection in isutf8() and funicode() helper ↵Stefan Behnel2018-10-202-7/+43
| | | | | | | | | | | | functions.
* | | New and improved namespace handling for the saxifierLennart Regebro2018-11-232-50/+138
| | |
* | | Merge branch 'master' into masterLennart Regebro2018-10-1742-262/+220
|\ \ \ | |/ /
| * | Merge lxml-4.2 branch into master.Stefan Behnel2018-09-295-0/+10
| |\ \
| | * | Fix import warnings in Py3.6+ by switching to absolute imports.Stefan Behnel2018-09-295-0/+10
| | | |
| * | | Merge branch lxml-4.2 into master.Stefan Behnel2018-09-092-5/+6
| |\ \ \ | | |/ /
| | * | Fix typo in test file.Stefan Behnel2018-08-261-1/+1
| | | |
| | * | Fix: make the cleaner also remove javascript URLs that use escaping.Stefan Behnel2018-09-092-5/+6
| | | |
| | * | Add a test for the fix in github ticket #268.Stefan Behnel2018-08-031-0/+32
| | | |
| | * | Fixing possible memory corruption if node is moved between docsAlexander Weggerle2018-07-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | etree.insert function tries to handle the case when a node is moved between documents with the function moveNodeToDocument. So far the source_doc is taken from the destination node which is wrong. The moveNodeToDocument function will not fix the names in the document dictionaries because source and target doc are the same. The fix takes now the source_doc from the node element which should be inserted. This fixes issue https://bugs.launchpad.net/lxml/+bug/1773749
| * | | Drop support for EOL Python 3.3Hugo2018-08-261-1/+1
| | | |
| * | | Merge pull request #270 from hugovk/rm-2.6scoder2018-08-2639-251/+165
| |\ \ \ | | | | | | | | | | Remove redundant Python <= 2.6 code
| | * | | Remove ununsed importsHugo2018-08-2614-17/+10
| | | | |
| | * | | Keep on same lineHugo2018-08-261-4/+2
| | | | |
| | * | | Start a new line for the itemsHugo2018-08-261-3/+3
| | | | |
| | * | | Use set comprehensionHugo2018-08-261-1/+1
| | | | |
| | * | | Add newlines for dict's keysHugo2018-08-261-4/+8
| | | | |
| | * | | Use tempfile.NamedTemporaryFile directlyHugo2018-08-262-8/+4
| | | | |
| | * | | Min version of LIBXML_VERSION is now 2.7Hugo2018-08-262-38/+36
| | | | |
| | * | | 'assert False' more readable than 'assert 0'Hugo2018-08-262-3/+3
| | | | |