summaryrefslogtreecommitdiff
path: root/defusedxml/cElementTree.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix regression defusedxml.ElementTree.ParseErrorChristian Heimes2021-03-081-0/+2
| | | | | | | | | | 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/+2
| | | | | | | | 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>
* make cElementTree an alias for ElementTreeChristian Heimes2021-03-041-20/+14
|
* Re-add cElementTree module and deprecate itChristian Heimes2021-01-121-3/+8
| | | | | | | ``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-1/+5
| | | | | | | | | | | 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>
* Reformat all code with black 18.9b0Christian Heimes2019-04-141-5/+14
| | | | 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>
* Use https:// URLs where availableJon Dufresne2019-04-141-1/+1
|
* Fix flake8 violationsChristian Heimes2017-01-281-1/+6
|
* Drop Python 2.6, 3.1 to 3.3 supportChristian Heimes2017-01-281-2/+2
|
* Add missing parser_list argument to sax.make_parser()Christian Heimes2013-02-201-0/+25
The argument is ignored, though. (thanks to Florian Apolloner)