Skip to content

Commit

Permalink
use defusedxml
Browse files Browse the repository at this point in the history
  • Loading branch information
bmos committed Sep 7, 2024
1 parent 09185b0 commit 8e1cda5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion parsons/scytl/scytl.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import csv
import typing as t
import xml.etree.ElementTree as ET
import zipfile
from dataclasses import dataclass
from datetime import datetime
from io import BytesIO, StringIO

import defusedxml.ElementTree as ET
import requests
from dateutil.parser import parse as parsedate
from pytz import timezone
Expand Down
2 changes: 1 addition & 1 deletion parsons/targetsmart/targetsmart_automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import logging
import time
import uuid
import xml.etree.ElementTree as ET

import defusedxml.ElementTree as ET
import xmltodict

from parsons.etl.table import Table
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ civis==1.16.1
curlify==2.2.1
dbt_redshift==1.4.0
docutils<0.18,>=0.14
defusedxml>=0.7.1, <=0.8.0
facebook-business==13.0.0
google-api-core==2.19.2
google-api-python-client==1.7.7
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ def main():
],
"s3": ["boto3"],
"salesforce": ["simple-salesforce"],
"scytl": ["defusedxml", "pytz"],
"sftp": ["paramiko"],
"slack": ["slackclient<2"],
"smtp": ["validate-email"],
"targetsmart": ["xmltodict"],
"targetsmart": ["xmltodict", "defusedxml"],
"twilio": ["twilio"],
"ssh": [
"sshtunnel",
Expand Down

0 comments on commit 8e1cda5

Please sign in to comment.