Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | Keep the original dict insertion order in Py3.6+ when setting attributes or ↵ | Stefan Behnel | 2019-03-01 | 2 | -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 Behnel | 2019-03-01 | 1 | -1/+1 | |
| | | | ||||||
* | | | Add a "keep_tail=True" option to Element.clear() to cater for a common need ↵ | Stefan Behnel | 2019-03-01 | 2 | -3/+13 | |
| | | | | | | | | | | | | in document-style XML/HTML. | |||||
* | | | Try to stabilise a garbage collection test a little better. | Stefan Behnel | 2019-03-01 | 1 | -2/+4 | |
| | | | ||||||
* | | | Simplify Element.clear() and reduce overhead in the attribute clearing code. | Stefan Behnel | 2019-03-01 | 2 | -11/+10 | |
|/ / | ||||||
* | | Fix crash due to incorrect dict handling for text nodes. | Stefan Behnel | 2019-02-28 | 2 | -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 Behnel | 2019-02-28 | 1 | -0/+2 | |
| | | ||||||
* | | Improve cleanup handling when an exception is raised during document adaptation. | Stefan Behnel | 2019-02-28 | 1 | -0/+1 | |
| | | ||||||
* | | Add some tests for tree modification while iterating. | Stefan Behnel | 2019-02-28 | 1 | -7/+56 | |
| | | ||||||
* | | Avoid instantiating node iterators when it's easy to see that they will be ↵ | Stefan Behnel | 2019-02-28 | 1 | -0/+11 | |
| | | | | | | | | empty. | |||||
* | | Replace old Pyrex property syntax with @property decorators for read-only ↵ | Stefan Behnel | 2019-02-23 | 11 | -537/+542 | |
| | | | | | | | | properties, and resolve some Cython warnings. | |||||
* | | Also set .doc field of attribute children (if any) during subtree migration. | Stefan Behnel | 2019-02-06 | 1 | -0/+8 | |
| | | ||||||
* | | Replace obfuscated loop with a helper function that is called twice for two ↵ | Stefan Behnel | 2019-02-06 | 1 | -43/+43 | |
| | | | | | | | | different things. | |||||
* | | Disable a test under Windows that depends on library linking. | Stefan Behnel | 2019-02-06 | 1 | -1/+3 | |
| | | ||||||
* | | LP#1814522: Fix a crash when appending a child subtree that contains ↵ | Stefan Behnel | 2019-02-05 | 4 | -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 Behnel | 2018-12-02 | 5 | -5/+5 | |
| | | ||||||
* | | Fix compile problem due to language_level=3: "basestring" must still refer ↵ | Stefan Behnel | 2018-12-02 | 1 | -1/+1 | |
| | | | | | | | | to "str/unicode" in Py2. | |||||
* | | Set explicit Cython language levels for compiled modules (Cython suggests to ↵ | Stefan Behnel | 2018-12-02 | 9 | -0/+15 | |
| | | | | | | | | make them explicit). | |||||
* | | Speed up sax.py by converting ElementTreeProducer into an extension type and ↵ | Stefan Behnel | 2018-12-02 | 1 | -0/+14 | |
| | | | | | | | | inlining its internal method calls. | |||||
* | | Cleanups for #267: avoid failure on min([]), tune some code constructs for ↵ | Stefan Behnel | 2018-12-02 | 1 | -20/+28 | |
| | | | | | | | | faster compilation. | |||||
* | | Further updates to the namespace changes when saxifying | Lennart Regebro | 2018-11-26 | 1 | -23/+18 | |
| | | ||||||
* | | Merge branch 'master' into master | Stefan Behnel | 2018-11-23 | 5 | -129/+234 | |
|\ \ | ||||||
| * | | Simplify RNG parsing in ISO-Schematron setup code. | Stefan Behnel | 2018-11-23 | 1 | -2/+2 | |
| | | | ||||||
| * | | Make <properties> tag in ISO-Schematron RNG optional, diverging from the ↵ | Stefan Behnel | 2018-11-23 | 1 | -1/+4 | |
| | | | | | | | | | | | | 2016 version of the standard. | |||||
| * | | Update ISO-Schematron RNG schema to 2016 specification from | Stefan Behnel | 2018-11-23 | 1 | -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 Behnel | 2018-11-23 | 2 | -116/+134 | |
| | | | ||||||
| * | | Fix signature of helper function to avoid C compiler warnings. | Stefan Behnel | 2018-11-23 | 1 | -1/+1 | |
| | | | ||||||
* | | | Merge branch 'master' into master | Lennart Regebro | 2018-11-23 | 5 | -12/+51 | |
|\ \ \ | |/ / | ||||||
| * | | Clarify docstring: passing 'unicode' as encoding name into tostring() is ↵ | Stefan Behnel | 2018-11-16 | 1 | -3/+3 | |
| | | | | | | | | | | | | more common than passing the unicode/str function. | |||||
| * | | LP#1799755: Fix ABC imports from collections package to resolve a ↵ | Stefan Behnel | 2018-10-24 | 2 | -2/+5 | |
| | | | | | | | | | | | | DeprecationWarning in Py3.7. | |||||
| * | | Speed up ascii/non-ascii string detection in isutf8() and funicode() helper ↵ | Stefan Behnel | 2018-10-20 | 2 | -7/+43 | |
| | | | | | | | | | | | | functions. | |||||
* | | | New and improved namespace handling for the saxifier | Lennart Regebro | 2018-11-23 | 2 | -50/+138 | |
| | | | ||||||
* | | | Merge branch 'master' into master | Lennart Regebro | 2018-10-17 | 42 | -262/+220 | |
|\ \ \ | |/ / | ||||||
| * | | Merge lxml-4.2 branch into master. | Stefan Behnel | 2018-09-29 | 5 | -0/+10 | |
| |\ \ | ||||||
| | * | | Fix import warnings in Py3.6+ by switching to absolute imports. | Stefan Behnel | 2018-09-29 | 5 | -0/+10 | |
| | | | | ||||||
| * | | | Merge branch lxml-4.2 into master. | Stefan Behnel | 2018-09-09 | 2 | -5/+6 | |
| |\ \ \ | | |/ / | ||||||
| | * | | Fix typo in test file. | Stefan Behnel | 2018-08-26 | 1 | -1/+1 | |
| | | | | ||||||
| | * | | Fix: make the cleaner also remove javascript URLs that use escaping. | Stefan Behnel | 2018-09-09 | 2 | -5/+6 | |
| | | | | ||||||
| | * | | Add a test for the fix in github ticket #268. | Stefan Behnel | 2018-08-03 | 1 | -0/+32 | |
| | | | | ||||||
| | * | | Fixing possible memory corruption if node is moved between docs | Alexander Weggerle | 2018-07-30 | 1 | -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.3 | Hugo | 2018-08-26 | 1 | -1/+1 | |
| | | | | ||||||
| * | | | Merge pull request #270 from hugovk/rm-2.6 | scoder | 2018-08-26 | 39 | -251/+165 | |
| |\ \ \ | | | | | | | | | | | Remove redundant Python <= 2.6 code | |||||
| | * | | | Remove ununsed imports | Hugo | 2018-08-26 | 14 | -17/+10 | |
| | | | | | ||||||
| | * | | | Keep on same line | Hugo | 2018-08-26 | 1 | -4/+2 | |
| | | | | | ||||||
| | * | | | Start a new line for the items | Hugo | 2018-08-26 | 1 | -3/+3 | |
| | | | | | ||||||
| | * | | | Use set comprehension | Hugo | 2018-08-26 | 1 | -1/+1 | |
| | | | | | ||||||
| | * | | | Add newlines for dict's keys | Hugo | 2018-08-26 | 1 | -4/+8 | |
| | | | | | ||||||
| | * | | | Use tempfile.NamedTemporaryFile directly | Hugo | 2018-08-26 | 2 | -8/+4 | |
| | | | | | ||||||
| | * | | | Min version of LIBXML_VERSION is now 2.7 | Hugo | 2018-08-26 | 2 | -38/+36 | |
| | | | | | ||||||
| | * | | | 'assert False' more readable than 'assert 0' | Hugo | 2018-08-26 | 2 | -3/+3 | |
| | | | | |