fix: change deprecated defusedxml.lxml to defusedxml.common (#34177)

This commit is contained in:
Priyanshu
2024-02-08 03:41:42 +05:30
committed by GitHub
parent ab6793ef29
commit 81611a7a8e
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ Test that we have defused XML.
from lxml import etree
from defusedxml.lxml import EntitiesForbidden
from defusedxml.common import EntitiesForbidden
from .xmlparser import fromstring
import pytest

View File

@@ -8,7 +8,7 @@ import threading
from lxml import etree as _etree
from defusedxml.lxml import DTDForbidden, EntitiesForbidden, NotSupportedError
from defusedxml.common import DTDForbidden, EntitiesForbidden, NotSupportedError
LXML3 = _etree.LXML_VERSION[0] >= 3