Skip to content

Commit

Permalink
Use non-deprecated defusedxml ElementTree first
Browse files Browse the repository at this point in the history
When importing defusedxml's ElementTree use the non-deprecated import
path first to avoid warnings.
  • Loading branch information
riconnon authored and necaris committed Oct 26, 2024
1 parent 9006595 commit a65b2de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openid/oidutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
logger = logging.getLogger(__name__)

xxe_safe_elementtree_modules = [
'defusedxml.cElementTree',
'defusedxml.ElementTree',
'defusedxml.cElementTree',
]

elementtree_modules = [
Expand Down

0 comments on commit a65b2de

Please sign in to comment.