From b24eae83691c89d0fc7dd3f3156a762b289ad9ae Mon Sep 17 00:00:00 2001 From: Tuna Celik Date: Sat, 2 Mar 2024 18:28:48 +0100 Subject: [PATCH] added missing import --- radicale/app/proppatch.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radicale/app/proppatch.py b/radicale/app/proppatch.py index 70eff8b6..f81e6fba 100644 --- a/radicale/app/proppatch.py +++ b/radicale/app/proppatch.py @@ -28,6 +28,10 @@ from radicale.app.base import Access, ApplicationBase from radicale.hook import HookNotificationItem, HookNotificationItemTypes from radicale.log import logger +# HACK: https://github.com/tiran/defusedxml/issues/54 +import defusedxml.ElementTree as DefusedET # isort:skip +sys.modules["xml.etree"].ElementTree = ET # type:ignore[attr-defined] + def xml_proppatch(base_prefix: str, path: str, xml_request: Optional[ET.Element],