Skip to content

Commit 7066da9

Browse files
committed
fix: use defusedxml instead of minidom
This should be safer and we already depend on it.
1 parent 6d33af8 commit 7066da9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dev = [
1212
"pyright==1.1.397",
1313
"pytest-xdist>=3.6.1",
1414
"types-requests==2.32.0.20250328",
15+
"types-defusedxml==0.7.0.20240218",
1516
"types-python-jose==3.4.0.20250224",
1617
"types-oauthlib==3.2.0.20250408",
1718
"types-requests-oauthlib==2.0.0.20250306",
@@ -79,6 +80,7 @@ dev = [
7980
"pyright==1.1.397",
8081
"pytest-xdist>=3.6.1",
8182
"types-requests==2.32.0.20250328",
83+
"types-defusedxml==0.7.0.20240218",
8284
"types-python-jose==3.4.0.20250224",
8385
"types-oauthlib==3.2.0.20250408",
8486
"types-requests-oauthlib==2.0.0.20250306",

social_core/backends/tripit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
https://python-social-auth.readthedocs.io/en/latest/backends/tripit.html
44
"""
55

6-
from xml.dom import minidom
6+
from defusedxml import minidom
77

88
from .oauth import BaseOAuth1
99

0 commit comments

Comments
 (0)