1
0
Fork 0
mirror of synced 2025-07-03 11:57:26 +02:00

Remove defusedxml support and document why

This commit is contained in:
jvoisin 2018-09-05 18:41:08 +02:00
parent 3649c0ccaf
commit 072ee1814d
2 changed files with 9 additions and 5 deletions

View file

@ -7,11 +7,7 @@ import zipfile
import logging
from typing import Dict, Set, Pattern
try: # protect against DoS
from defusedxml import ElementTree as ET # type: ignore
except ImportError:
import xml.etree.ElementTree as ET # type: ignore
import xml.etree.ElementTree as ET # type: ignore
from . import abstract, parser_factory