From 072ee1814d2d40788a93622fe6e753a9f434d515 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 5 Sep 2018 18:41:08 +0200 Subject: Remove defusedxml support and document why --- libmat2/office.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'libmat2') diff --git a/libmat2/office.py b/libmat2/office.py index 224067c..29100df 100644 --- a/libmat2/office.py +++ b/libmat2/office.py @@ -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 -- cgit v1.3