summaryrefslogtreecommitdiff
path: root/src/lxml/includes
Commit message (Collapse)AuthorAgeFilesLines
* Use "noexcept" modifiers for callback functions and fix some exception value ↵Stefan Behnel2022-12-233-19/+19
| | | | declaration bugs found by Cython 3.0.
* Use generic 'nogil' block markers in pxd declarations where possible, except ↵Stefan Behnel2022-12-1512-297/+297
| | | | for a few callback declarations that may be used for regular GIL functions.
* Work around libxml2 bug in affected versions that failed to reset the ↵Stefan Behnel2022-07-191-0/+1
| | | | | | namespace count in the parser context. See https://gitlab.gnome.org/GNOME/libxml2/-/issues/378
* #undefine "PyUnicode_IS_READY" and friends in Py3.12 since CPython still ↵Stefan Behnel2022-05-171-7/+0
| | | | defines them as dummies.
* Add new error constant from libxml2 2.9.14.Stefan Behnel2022-05-171-0/+1
|
* Allow Path-like objects for file arguments (GH-337)Henning Janssen2022-02-121-0/+6
| | | Use "PyOS_FSPath()" if available (Py3.6+). Otherwise, manually check for "__fspath__", in case an object defines it.
* Remove support for CPython 3.4.Stefan Behnel2019-04-211-2/+2
|
* Simplify Element.clear() and reduce overhead in the attribute clearing code.Stefan Behnel2019-03-011-0/+1
|
* LP#1814522: Fix a crash when appending a child subtree that contains ↵Stefan Behnel2019-02-051-0/+2
| | | | | | | 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.
* Remove redundant code for Python <= 2.6Hugo2018-08-251-7/+2
|
* Suppress C compiler warning in Py2.6.Stefan Behnel2017-11-271-1/+1
|
* Fix some C compiler warnings.Stefan Behnel2017-08-311-1/+1
|
* Add a ``.write_result()`` method to XSLT result objects to simplify writing ↵Stefan Behnel2017-08-172-1/+14
| | | | the expected output into a file.
* Properly integrate the compilation of _elementpath.py and some lxml.html ↵Stefan Behnel2017-08-112-1/+1
| | | | | | modules into the build process and exclude it in PyPy. Also finally rename lxml.etree.pyx and lxml.objectify.pyx to their correct module names and provide some legacy integration aid by keeping the original API header file names.
* capture location of node with error if availableBob Kline2017-04-231-0/+1
|
* adding adoptExternalDocument to the public headerAl2017-04-221-4/+3
|
* add documentFactory to public headerAl2017-04-141-0/+4
|
* fix spelling mistakes originally found by scop in GH#230Stefan Behnel2017-03-181-2/+2
|
* Add type checking for the capsuleKovid Goyal2017-02-191-0/+6
| | | | adopt_external_document() should type check its argument
* Implement new API function "adopt_external_document()" that accepts a ↵Stefan Behnel2017-02-181-0/+37
| | | | PyCapsule with a libxml2 document pointer and wraps it in an lxml ElementTree
* fix UTF-8 error handling in _write_attr_string()Stefan Behnel2017-01-081-0/+1
|
* try to use the new functionBurak Arslan2016-12-271-1/+1
|
* import xmlBufAttrSerializeTxtContent from libxmlBurak Arslan2016-12-271-0/+2
|
* replace IS_PYTHON3 C macro with IS_PYTHON2 before it starts looking funny in ↵Stefan Behnel2016-09-031-8/+10
| | | | Python 4.x :)
* fix compilation with libxml2 < 2.7.8Stefan Behnel2016-09-031-0/+3
|
* Fix setting the base url for etree.Resolver.resolve_stringMichael van Tellingen2016-07-181-0/+1
| | | | | | | | See https://github.com/GNOME/libxml2/blob/master/parserInternals.c#L1549 We seem to get away with only setting the _filename so that relative url's are resolved based on the value. Fixes https://bugs.launchpad.net/lxml/+bug/1568167
* repair last patch by saving and restoring the correct XSLT error ↵Stefan Behnel2016-03-181-1/+5
| | | | function+context combination
* propagate SAX exceptions immediately in HTML parser (used to continue parsing)Stefan Behnel2015-09-231-0/+22
|
* tighten type check in pypy3 work-around to match what Cython expectsStefan Behnel2015-04-101-1/+1
|
* work around missing PyBytes_FromFormat in pypy3Stefan Behnel2015-04-101-2/+35
|
* fix several C compiler warnings in pypyStefan Behnel2015-04-101-9/+11
|
* include internal/external DTD subsets in thread-dict cleanupStefan Behnel2015-04-041-0/+1
|
* for better symmetry, use lxml_malloc()/lxml_free() instead of ↵Stefan Behnel2015-03-011-0/+2
| | | | lxml_malloc()/PyMem_Free()
* use safer macros for memory allocation (adapted from PyMem_New() and ↵Stefan Behnel2015-03-011-0/+8
| | | | PyMem_Resize())
* make Cython aware of "const_xmlChar" constnessStefan Behnel2015-03-011-1/+1
|
* Update name validation.Olli Pottonen2015-02-211-0/+1
| | | | | 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.)
* Enable modifying document type declarations.Olli Pottonen2015-02-161-0/+2
| | | | See https://bugs.launchpad.net/lxml/+bug/1421512.
* Properly serialize all HTML doctype declarations.Olli Pottonen2015-02-161-0/+1
| | | | See https://bugs.launchpad.net/lxml/+bug/659367.
* use per-document hash tables for XML IDs and allow disabling them completely ↵Stefan Behnel2014-05-282-4/+17
| | | | with collect_ids=False
* remove legacy code for now unsupported libxml2/libxslt versionsStefan Behnel2014-03-221-39/+10
| | | | | --HG-- extra : amend_source : 5f766bb41c74b8ea7bba7f71905fb18cb90a19f2
* remove some unused imports in .pxd filesStefan Behnel2014-03-203-5/+3
|
* add new libxml2 HTML parser flags to declarationsStefan Behnel2014-03-201-0/+6
|
* use XML_PARSE_BIG_LINES parser option if available (libxml2 2.9.0+)Stefan Behnel2014-03-181-0/+4
|
* add parse options added in recent libxml2 versionsStefan Behnel2014-03-181-0/+6
|
* use slightly better _isString() subtype check in Py2Stefan Behnel2014-03-151-1/+3
|
* use safer way to pass parser context into XInclude engine in libxml2 2.7.4 ↵Stefan Behnel2014-03-152-0/+5
| | | | | | | and later --HG-- extra : amend_source : 5e5f9f4de27a119ab64f722fd7a23ceeae98de46
* PyPy fixStefan Behnel2014-03-101-0/+2
|
* remove some legacy codeStefan Behnel2014-03-101-18/+4
|
* make C build fail for old Python versionsStefan Behnel2014-03-101-0/+4
|
* fix LP#910014: work around libxml2 bug #724903 that swallows a DTD ↵Stefan Behnel2014-02-211-1/+7
| | | | validation error