summaryrefslogtreecommitdiff
path: root/defusedxml/ElementTree.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix regression defusedxml.ElementTree.ParseErrorChristian Heimes2021-03-081-3/+5
| | | | | | | | | | 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/+13
| | | | | | | | 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>
* Simplify code, remove _generate_etree_functionsChristian Heimes2021-03-041-9/+42
| | | | | | | cElementTree is now a simple alias of ElementTree. The generate function is no longer needed. Signed-off-by: Christian Heimes <christian@python.org>
* Drop Python 2 supportChristian Heimes2021-03-041-17/+5
|
* Restore xml.etree.ElementTree after patchChristian Heimes2021-01-121-6/+15
| | | | | | | | 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>
* Mark some lines as non-reachableChristian Heimes2019-04-151-1/+1
|
* Reformat all code with black 18.9b0Christian Heimes2019-04-141-20/+34
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* Fix XMLParse typoChristian Heimes2019-04-141-3/+4
| | | | | | | | 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>
* Add ParseError to __all__Christian Heimes2019-04-141-2/+4
| | | | | Fixes: https://github.com/tiran/defusedxml/issues/16 Signed-off-by: Christian Heimes <christian@python.org>
* Deprecate html argument from ParsersChristian Heimes2019-04-141-3/+17
| | | | | | | | | | | | 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>
* Use https:// URLs where availableJon Dufresne2019-04-141-1/+1
|
* Fix flake8 violationsChristian Heimes2017-01-281-4/+16
|
* Drop Python 2.6, 3.1 to 3.3 supportChristian Heimes2017-01-281-21/+9
|
* Python 3.6 no _IterParseIterator classChristian Heimes2016-08-241-1/+1
|
* Add missing parser_list argument to sax.make_parser()Christian Heimes2013-02-201-0/+112
The argument is ignored, though. (thanks to Florian Apolloner)