Skip to content

Commit

Permalink
fix: change deprecated defusedxml.lxml to defusedxml.common (openedx#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryankur committed Feb 7, 2024
1 parent ab6793e commit 81611a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion openedx/core/lib/safe_lxml/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


from lxml import etree
from defusedxml.lxml import EntitiesForbidden
from defusedxml.common import EntitiesForbidden
from .xmlparser import fromstring

import pytest
Expand Down
2 changes: 1 addition & 1 deletion openedx/core/lib/safe_lxml/xmlparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

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

Expand Down

0 comments on commit 81611a7

Please sign in to comment.