summaryrefslogtreecommitdiff
path: root/tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix regression defusedxml.ElementTree.ParseErrorChristian Heimes2021-03-081-0/+9
| | | | | | | | | | The ``defusedxml.ElementTree.ParseError`` exception is now the same class object as ``xml.etree.ElementTree.ParseError`` again. The regression was introduced by new patching code as part of PR #60. See: https://github.com/tiran/defusedxml/pull/60 Fixes: https://github.com/tiran/defusedxml/issues/63 Signed-off-by: Christian Heimes <christian@python.org>
* Add ElementTree.fromstringlist()Christian Heimes2021-03-041-0/+10
| | | | | | | | Include ``fromstringlist()`` method introduced in Python 3.2. Closes: #47 Co-authored-by: Antoine <antoine.sb@orange.fr> Signed-off-by: Christian Heimes <christian@python.org>
* Drop Python 2 supportChristian Heimes2021-03-041-15/+3
|
* Restore xml.etree.ElementTree after patchChristian Heimes2021-01-121-0/+6
| | | | | | | | Restore ``ElementTree`` attribute of ``xml.etree`` module after patching Closes: https://github.com/tiran/defusedxml/issues/54 Co-authored-by: Marien Zwart <marienz@google.com> Signed-off-by: Christian Heimes <christian@python.org>
* Re-add cElementTree module and deprecate itChristian Heimes2021-01-121-9/+11
| | | | | | | ``xml.etree.ElementTree`` was re-added before Python 3.9.0 release. The alias will be removed in a future release. Signed-off-by: Christian Heimes <christian@python.org>
* Python 3.9 compatibilityChristian Heimes2020-04-151-2/+9
| | | | | | | | | | | Python 3.9 no longer ships the xml.etree.cElementTree module. defusedxml no longer provides the a fixed module with 3.9 as well. defusedxml.cElementTree is still available with 3.8. See: https://bugs.python.org/issue36543 See: https://github.com/python/cpython/pull/19108 Fixes: https://github.com/tiran/defusedxml/issues/50 Signed-off-by: Christian Heimes <christian@python.org>
* Test more minidomChristian Heimes2019-04-151-1/+17
|
* Reformat all code with black 18.9b0Christian Heimes2019-04-141-73/+58
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* deprecate defusedxml.lxmlChristian Heimes2019-04-141-1/+17
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* Fix XMLParse typoChristian Heimes2019-04-141-0/+6
| | | | | | | | The defusedxml.ElementTree and defusedxml.cElementTree modules had a typo and used XMLParse instead of XMLParser as an alias for DefusedXMLParser. Both the old and fixed name are now available. Signed-off-by: Christian Heimes <christian@python.org>
* Deprecate html argument from ParsersChristian Heimes2019-04-141-1/+15
| | | | | | | | | | | | The defused XMLParse subclass no longer passes the html argument down to the XMLParse class. The argument has been deprecated and ignored for a long time. The DefusedXMLParser still takes a html argument. A deprecation warning is issued when the argument is False and a TypeError when it's True. Fixes: https://github.com/tiran/defusedxml/issues/34 Co-authored-by: Erik Cederstrand <erik@cederstrand.dk> Signed-off-by: Christian Heimes <christian@python.org>
* Fix flake8 violationsChristian Heimes2017-01-281-12/+13
|
* Drop Python 2.6, 3.1 to 3.3 supportChristian Heimes2017-01-281-59/+19
|
* verify xmlrpc behaviorChristian Heimes2013-03-261-1/+13
|
* Add missing parser_list argument to sax.make_parser()Christian Heimes2013-02-201-0/+532
The argument is ignored, though. (thanks to Florian Apolloner)