summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | Revert "Replace mutable default argument"Hugo2018-08-262-25/+7
| | | | | | | | | | | | | | | | | | | | This reverts commit 92faebc0efa332c39a94d90d4ab7eb1a82233c4b.
| | * | | Remove redundant '= None'Hugo2018-08-261-1/+1
| | | | |
| | * | | Split lines for clarityHugo2018-08-261-3/+6
| | | | |
| | * | | Simplify isinstanceHugo2018-08-261-1/+1
| | | | |
| | * | | Remove unnecessary backslashHugo2018-08-251-2/+2
| | | | |
| | * | | Remove redundant parenthesesHugo2018-08-2511-46/+46
| | | | |
| | * | | Replace list creation with list literalHugo2018-08-251-7/+3
| | | | |
| | * | | Replace function call with set literalHugo2018-08-254-9/+7
| | | | |
| | * | | Replace dictionary creation with dictionary literalHugo2018-08-251-24/+9
| | | | |
| | * | | Replace mutable default argumentHugo2018-08-252-7/+25
| | | | |
| | * | | Compare None using 'is'/'is not' instead of equality operatorsHugo2018-08-252-4/+4
| | | | |
| | * | | Remove redundant code for Python <= 2.6Hugo2018-08-2521-96/+39
| | | |/ | | |/|
| * | | Fix typo in test file.Stefan Behnel2018-08-261-1/+1
| |/ /
| * | Make test more resilient against changes in latest libxslt releases.Stefan Behnel2018-08-041-3/+4
| | |
| * | 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
* | Let ElementTreeProducer use the available namespacesLennart Regebro2018-10-172-8/+81
|/ | | | ElementTreeProducer would ignore the namespace prefixes that were available in the element tree, and always generate new prefixes like ns00, ns01 etc.
* Work around Cython bug that calls the parent class tp_clear() function even ↵Stefan Behnel2018-06-032-0/+2
| | | | | | if the parent is declared as @no_gc_clear. See #266.
* Fix crash during GC when _ParserContext and _ParserSchemaValidationContext ↵Stefan Behnel2018-06-031-1/+2
| | | | | | instances participate in a reference cycle and the _ParserContext gets cleared by the GC before it can disconnect the _ParserSchemaValidationContext. Closes #266.
* Add missing huge_tree parameter to XMLParserjohnthagen2018-04-131-1/+1
| | | | | The `huge_tree` parameter is missing from the docstring definition of the `XMLParser` class. This causes PyCharm to report a false positive when this parameter is used: https://youtrack.jetbrains.com/issue/PY-21959 This PR adds the parameter to the docstring.
* LP#1755825: iterparse() failed to include the initial start event if the ↵Stefan Behnel2018-03-162-0/+36
| | | | start element matched a tag selector.
* Improve documentation of the "tag" argument to the iter*() methods.Stefan Behnel2018-03-161-11/+12
|
* Clean up some exception handling code to fix Cython warnings.Stefan Behnel2018-03-104-6/+21
|
* LP#1551797: Make sure we really capture all XSLT error messages, not only ↵Stefan Behnel2018-03-101-1/+2
| | | | those that libxslt sends through the transform context.
* LP#1551797: Send XSLT errors to a thread-local stack of error logs and ↵Stefan Behnel2018-03-103-29/+166
| | | | | | push/pop the transform's log on it around XSLT operations. This should solve the problem of XSLT error messages getting lost and also work around the fact that the XSLT error function in libxslt is a global variable that is not thread-specfic.
* Fix HTMLParser docstring.stranac2018-03-081-1/+1
|
* Add huge_tree support to HTMLParser.stranac2018-03-081-1/+5
|
* Add comment.Stefan Behnel2018-02-171-0/+2
|
* Avoid dependency on char signedness in C comparison.Stefan Behnel2018-02-161-1/+2
|
* Speed up the creation of _MultiTagMatcher instances a little by directly ↵Stefan Behnel2018-02-094-11/+7
| | | | calling __new__() instead of the class.
* Convert another string formatting operation to an f-string.Stefan Behnel2018-01-251-2/+2
|
* Use f-strings for all string formatting for which it makes sense (i.e. does ↵Stefan Behnel2018-01-2515-130/+104
| | | | not look unreadable).
* LP#1743655: Fix up behaviour when None is passed into QName(): reject (None, ↵Stefan Behnel2018-01-202-13/+27
| | | | None), ignore None as namespace.
* Add a test case for LP#1737825.Stefan Behnel2018-01-061-0/+17
|
* LP#1737825: Fix a crash during garbage collection when an iterparse run with ↵Stefan Behnel2018-01-062-0/+19
| | | | XMLSchema validation gets interrupted and not finished.
* Use xmlMalloc() instead of plain malloc() for allocating an xmlSAXHandler to ↵Stefan Behnel2018-01-061-1/+1
| | | | match the corresponding xmlFree() call in libxml2.
* Clean up except syntax usage.Stefan Behnel2018-01-061-1/+1
|
* Remove unnecessary pre-declarations.Stefan Behnel2018-01-061-7/+0
|
* Suppress C compiler warning in Py2.6.Stefan Behnel2017-11-271-1/+1
|
* Document that the tag argument can be a sequence of tags.Chris Jerdonek2017-11-261-3/+7
|
* Clean up test code for better readability.Stefan Behnel2017-11-121-6/+16
|
* Clean up useless import fallback.Stefan Behnel2017-11-051-4/+1
|
* Remove useless Py3 adaptation that Cython can handle internally.Stefan Behnel2017-11-052-23/+8
|
* Simplify error constant setup. The MSVC work-around of splitting the strings ↵Stefan Behnel2017-11-041-43/+18
| | | | into shorter substrings is no longer needed since Cython handles it internally.
* Merge branch 'master' into select-fallbackscoder2017-11-125-4/+63
|\
| * Fix getargspec DeprecationWarningRichard Owen2017-11-101-2/+2
| | | | | | Try to import the newer method (getfullargspec) and only fall back to getargspec if it can't be imported. This should resolve the DeprecationWarning from getargspec being imported.
| * Merge pull request #254 from scoder/nsdecoscoder2017-10-132-1/+51
| |\ | | | | | | Support using the FunctionNamespace and ElementNamespaceClassLookup registries as decorators
| | * Merge branch 'master' into nsdecoscoder2017-10-132-13/+191
| | |\
| | * | Support using the FunctionNamespace and ElementNamespaceClassLookup ↵Stefan Behnel2017-09-172-1/+51
| | | | | | | | | | | | | | | | registries as decorators.
| * | | LP#1722776: Fix fallback of PythonElementClassLookup for comments etc.Stefan Behnel2017-10-132-1/+10
| | |/ | |/|