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 authored Feb 7, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent ab6793e commit 81611a7
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
@@ -4,7 +4,7 @@


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

import pytest
2 changes: 1 addition & 1 deletion openedx/core/lib/safe_lxml/xmlparser.py
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 81611a7

Please sign in to comment.