Remove defusedxml support and document why
This commit is contained in:
parent
3649c0ccaf
commit
072ee1814d
2 changed files with 9 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue