defusedxml.ElementTree: useElement from ElementTree instead of minidom (#11305)

This commit is contained in:
Tanguy Rossel authored and GitHub committed 2024-02-17 15:56:08 +01:00
1 parent 67a80c67df
commit 498ab71a34
1 file changed
+1 -2
+1 -2
View File
@@ -1,8 +1,7 @@
from _typeshed import Incomplete
from collections.abc import Iterator, Sequence
from typing import Any
from xml.dom.minidom import Element
from xml.etree.ElementTree import ElementTree, ParseError as ParseError, XMLParser as _XMLParser, tostring as tostring
from xml.etree.ElementTree import Element, ElementTree, ParseError as ParseError, XMLParser as _XMLParser, tostring as tostring
class DefusedXMLParser(_XMLParser):
forbid_dtd: bool