Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Prevent lxml.objectify from accepting non-decimal digit characters as ↵ | Stefan Behnel | 2023-03-03 | 1 | -0/+1 |
| | | | | integers/numbers and from representing them as IntElement. | ||||
* | Work around libxml2 bug in affected versions that failed to reset the ↵ | Stefan Behnel | 2022-07-19 | 1 | -2/+1 |
| | | | | | | namespace count in the parser context. See https://gitlab.gnome.org/GNOME/libxml2/-/issues/378 | ||||
* | LP#1981760: Register "Element.attrib" as collections.abc.MutableMapping. | Stefan Behnel | 2022-07-15 | 1 | -0/+12 |
| | |||||
* | Prevent parse failure in new test from leaking into later test runs.lxml-4.9.1 | Stefan Behnel | 2022-07-01 | 1 | -2/+4 |
| | |||||
* | Fix a crash when incorrect parser input occurs together with usages of ↵ | Stefan Behnel | 2022-07-01 | 1 | -0/+20 |
| | | | | iterwalk() on trees generated by the same parser. | ||||
* | Remove debug print from test. | Stefan Behnel | 2022-05-31 | 1 | -2/+0 |
| | |||||
* | Add a test for https://bugs.launchpad.net/lxml/+bug/1965070 leaving out the ↵ | Stefan Behnel | 2022-05-30 | 1 | -0/+25 |
| | | | | actual failure case. | ||||
* | Allow QName as tag value in ElementMaker, not just strings. | Stefan Behnel | 2022-02-14 | 1 | -1/+18 |
| | |||||
* | Use expected XSD spellings for xsi:double infinity and NaN (GH-338) | Tobias Deiminger | 2022-02-13 | 1 | -0/+9 |
| | | | | | | | | | | | | | W3C specification for xsd:double says > The special values positive and negative infinity and > not-a-number have lexical representations INF, -INF and NaN, > respectively. Thus case matters. The previously used float.__repr__ would generate "inf", "-inf", "nan". Now we prepend special handling to get "INF", "-INF", "NaN" instead (which is still pytype compatible). Includes minor non-functional alignments of related bool to text code, and tests to assert its XML schema conformance as well. | ||||
* | Allow Path-like objects for file arguments (GH-337) | Henning Janssen | 2022-02-12 | 5 | -3/+84 |
| | | | Use "PyOS_FSPath()" if available (Py3.6+). Otherwise, manually check for "__fspath__", in case an object defines it. | ||||
* | Add a test to get at least minimal coverage for the lxml.html.builder module. | Stefan Behnel | 2021-12-13 | 1 | -0/+8 |
| | |||||
* | Fix condition in test decorator. | Stefan Behnel | 2021-12-10 | 1 | -1/+1 |
| | |||||
* | Exclude a test when using the macOS system libraries because it fails with ↵ | Stefan Behnel | 2021-12-10 | 3 | -3/+12 |
| | | | | libxml2 2.9.4. | ||||
* | Add test for Python3 regression in C14N2 serialization (GH-332) | khillman | 2021-11-21 | 1 | -0/+39 |
| | | | | | Details in https://mail.python.org/archives/list/lxml@python.org/thread/6ZFBHFOVHOS5GFDOAMPCT6HM5HZPWQ4Q/ Fixed in https://github.com/lxml/lxml/commit/8a9579c32782f3d59b73bcf3e7d2fb3b52b80956 | ||||
* | Implement a dedicated int/float parser for XML (schema) values in ↵ | Stefan Behnel | 2021-08-14 | 1 | -7/+62 |
| | | | | | | | | | lxml.objectify. This disables support for "_" in numbers, which are allowed by Python but not by XMLSchema. We keep a few additional literals, such as "+NaN", simply because they shouldn't hurt. See https://mail.python.org/archives/list/lxml@python.org/thread/6F7VIDKWZTJ6LB6VOX6IJNNWICYHFPNR/ | ||||
* | Rewrite Unicode chunk parsing by directly encoding to UTF-8. | Stefan Behnel | 2021-07-18 | 1 | -6/+55 |
| | | | | Previously, we required Py_UNICODE strings, which is inefficient since most strings in Py3 use the PEP-393 memory layout. | ||||
* | Adapt a test to a behavioural change in libxml2 2.9.11+. | Stefan Behnel | 2021-05-19 | 1 | -1/+4 |
| | |||||
* | Clean up fuzzer test. | Stefan Behnel | 2021-05-08 | 1 | -1/+3 |
| | |||||
* | Add initial Atheris fuzzer. (GH-313) | DavidKorczynski | 2021-05-08 | 1 | -0/+23 |
| | |||||
* | Enable access to the system_url of DTD entity declarations (GH-317) | Joel | 2021-05-08 | 1 | -0/+8 |
| | |||||
* | Exclude a test in Py 3.9.0 due to ET bug https://bugs.python.org/issue41900 | Stefan Behnel | 2020-10-15 | 1 | -0/+12 |
| | |||||
* | Disable test in unfixed ET versions <= 3.8.6. | Stefan Behnel | 2020-10-01 | 1 | -0/+4 |
| | |||||
* | LP#1869455: C14N 2.0 serialisation failed for unprefixed attributes when a ↵ | Stefan Behnel | 2020-10-01 | 1 | -0/+8 |
| | | | | default namespace was defined. | ||||
* | Remove dead imports. | Stefan Behnel | 2020-08-13 | 2 | -2/+2 |
| | |||||
* | Remove dead code. | Stefan Behnel | 2020-08-13 | 1 | -9/+0 |
| | |||||
* | Disable gc.collect() calls after each test run since there haven't been ↵ | Stefan Behnel | 2020-08-13 | 1 | -1/+10 |
| | | | | proxy crashes for a very long time now and it considerably slows down the test runs (~factor 6). | ||||
* | Remove dead code. | Stefan Behnel | 2020-08-13 | 1 | -1/+1 |
| | |||||
* | Use sphinx-apidoc to create API reference (GH-309) | Chris Mayo | 2020-08-04 | 1 | -1/+3 |
| | | | | | | | | | | | | | * Add some missing files to .gitignore * Remove duplicate open_in_browser from lxml.html.__all__ * Make ETreeXMLSchemaTestCase docstring Sphinx autodoc friendly * Fix outdated codespeak.net links in docstrings * Convert html/defs.py comment to be the module docstring * Use sphinx-apidoc to create the API reference instead of epydoc Epydoc is Python 2 only and unmaintained. sphinx-apidoc is run before the build step, to avoid duplicate entries being created. * Include the elements from html.builder in the API reference * Use Python 3.8 for coverage Travis job * Build html documentation in Travis | ||||
* | Extend C14N2 tests to cover comment handling and "strip_text" together. | Stefan Behnel | 2020-06-14 | 1 | -16/+21 |
| | |||||
* | Fix a test after moving it to a different test module. | Stefan Behnel | 2020-05-26 | 1 | -2/+2 |
| | |||||
* | Move some ElementTree compatibility tests over to the etree-only tests since ↵ | Stefan Behnel | 2020-05-26 | 2 | -248/+252 |
| | | | | the features were removed in Py3.9. | ||||
* | Make iter() work with qnames (GH-298) | xmo-odoo | 2020-03-03 | 1 | -0/+24 |
| | | | | | "QName" is supposed to be usable anywhere a tag name is expected and iter() should take any number of tag names for filtering, but before this change passing a QName to iter() results in an exception. | ||||
* | LP#1857794: Tail text of nodes that get removed from a document using item ↵ | Stefan Behnel | 2020-01-02 | 1 | -0/+28 |
| | | | | deletion disappeared silently instead of sticking with the node that was removed. | ||||
* | Merge lxml-4.4 branch into master. | Stefan Behnel | 2019-12-27 | 1 | -0/+11 |
|\ | |||||
| * | LP#1844674: Include tail text of comments and PIs in itertext() results ↵ | Stefan Behnel | 2019-12-27 | 1 | -0/+11 |
| | | | | | | | | (regression in lxml 4.4). | ||||
| * | Fix false detection of recursive include (GH-286) | RainerHausdorf | 2019-08-18 | 1 | -0/+54 |
| | | | | | | | | | | | | | | | | | | | | Fix false detection of recursive include. In some cases ElementInclude does raise FatalIncludeError because of recursive include detection. This is the case if the same file gets included multiple times, but not recursive. This is a fix for https://bugs.launchpad.net/lxml/+bug/1835708 | ||||
* | | Clean up imports in tests. | Stefan Behnel | 2019-12-27 | 23 | -135/+93 |
| | | |||||
* | | Fix some typos in comments (found by codespell) (GH-292) | Stefan Weil | 2019-11-13 | 2 | -3/+3 |
| | | | | | | Signed-off-by: Stefan Weil <sw@weilnetz.de> | ||||
* | | Extend HTML tests a little to include tag matching. | Stefan Behnel | 2019-09-28 | 1 | -3/+19 |
| | | |||||
* | | Fix false detection of recursive include (GH-286) | RainerHausdorf | 2019-08-18 | 1 | -0/+54 |
| | | | | | | | | | | | | | | | | | | Fix false detection of recursive include. In some cases ElementInclude does raise FatalIncludeError because of recursive include detection. This is the case if the same file gets included multiple times, but not recursive. This is a fix for https://bugs.launchpad.net/lxml/+bug/1835708 | ||||
* | | Validate "level" argument in indent() function. | Stefan Behnel | 2019-08-15 | 1 | -0/+11 |
| | | |||||
* | | Implement indent() function for in-place pretty-printing of XML trees. | Stefan Behnel | 2019-08-13 | 1 | -0/+119 |
|/ | |||||
* | LP#1838252: Keep the order provided by an OrderedDict that gets passed as ↵ | Stefan Behnel | 2019-07-29 | 1 | -14/+27 |
| | | | | attrib mapping during element creation. This was broken in 4.4.0. | ||||
* | Update TreeBuilder tests from CPython's test suite. | Stefan Behnel | 2019-07-27 | 1 | -0/+114 |
| | |||||
* | Fix typos (GH-282) | Min ho Kim | 2019-06-24 | 1 | -2/+2 |
| | |||||
* | Prevent the default namespace from being picked up when searching for ↵ | Stefan Behnel | 2019-05-08 | 1 | -0/+59 |
| | | | | | | unprefixed attribute names. Fix copied from https://github.com/python/cpython/pull/13201 | ||||
* | LP#1827833: Fix .rnc parsing support with recent versions of rnc2rng. | Stefan Behnel | 2019-05-06 | 1 | -4/+9 |
| | |||||
* | Support parsing from file paths in canonicalize(), not just file-like objects. | Stefan Behnel | 2019-04-29 | 1 | -10/+12 |
| | |||||
* | Change canonicalize() interface to return its result as a text string by ↵ | Stefan Behnel | 2019-04-29 | 1 | -6/+2 |
| | | | | default. | ||||
* | Extend tests. | Stefan Behnel | 2019-04-29 | 1 | -0/+20 |
| |