summaryrefslogtreecommitdiff
path: root/defusedxml
Commit message (Collapse)AuthorAgeFilesLines
* Add pypi workflowChristian Heimes2022-07-141-1/+1
|
* Fix regression defusedxml.ElementTree.ParseErrorChristian Heimes2021-03-082-3/+7
| | | | | | | | | | 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-042-0/+15
| | | | | | | | 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-042-53/+42
| | | | | | | cElementTree is now a simple alias of ElementTree. The generate function is no longer needed. Signed-off-by: Christian Heimes <christian@python.org>
* make cElementTree an alias for ElementTreeChristian Heimes2021-03-041-20/+14
|
* Drop Python 2 supportChristian Heimes2021-03-044-45/+24
|
* Open main branch for 0.8.0 devChristian Heimes2021-03-041-1/+1
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* Prepare release 0.7.0v0.7.0Christian Heimes2021-03-041-1/+1
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* Become 0.7.0rc2v0.7.0rc2Christian Heimes2021-01-121-1/+1
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* 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>
* Prepare 0.7.0.rc2Christian Heimes2021-01-121-1/+1
|
* Re-add cElementTree module and deprecate itChristian Heimes2021-01-124-12/+13
| | | | | | | ``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>
* Reformat doc strings with latest blackChristian Heimes2021-01-122-14/+7
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* Become 0.7.0.rc1v0.7.0.rc1Christian Heimes2020-05-041-1/+1
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* Python 3.9 compatibilityChristian Heimes2020-04-153-6/+19
| | | | | | | | | | | 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>
* Prepare release 0.6.0v0.6.0Christian Heimes2019-04-171-1/+1
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* Mark some lines as non-reachableChristian Heimes2019-04-155-9/+9
|
* Prepare release 0.6.0.rc1v0.6.0.rc10.6.0rc1Christian Heimes2019-04-141-1/+1
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* Reformat all code with black 18.9b0Christian Heimes2019-04-1411-152/+227
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* deprecate defusedxml.lxmlChristian Heimes2019-04-141-2/+3
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* Deprecate lxmlChristian Heimes2019-04-141-0/+9
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* Fix XMLParse typoChristian Heimes2019-04-142-6/+8
| | | | | | | | 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>
* Fail early when pyexpat is missingChristian Heimes2019-04-141-0/+5
| | | | | Fixes: https://github.com/tiran/defusedxml/issues/10 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>
* Prepare 0.6.0.dev1Christian Heimes2019-04-141-1/+1
| | | | Signed-off-by: Christian Heimes <christian@python.org>
* Use https:// URLs where availableJon Dufresne2019-04-1411-11/+11
|
* Prepare 0.5.0v0.5.0Christian Heimes2017-02-091-1/+1
|
* Prepare release 0.5.0.rc1v0.5.0.rc1Christian Heimes2017-01-281-1/+1
|
* Update links and package building to release 0.5.0.dev1Christian Heimes2017-01-281-1/+1
|
* Fix flake8 violationsChristian Heimes2017-01-289-27/+61
|
* Drop Python 2.6, 3.1 to 3.3 supportChristian Heimes2017-01-284-90/+26
|
* Python 3.6 no _IterParseIterator classChristian Heimes2016-08-241-1/+1
|
* Prepare release 0.4.1v0.4.1Christian Heimes2013-03-281-2/+2
|
* back to devChristian Heimes2013-02-251-1/+1
|
* prepare release 0.4#v0.4Christian Heimes2013-02-251-1/+1
|
* Add missing parser_list argument to sax.make_parser()Christian Heimes2013-02-2011-0/+941
The argument is ignored, though. (thanks to Florian Apolloner)