We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11279cf commit 67b464eCopy full SHA for 67b464e
sparkpost/transmissions.py
@@ -2,7 +2,6 @@
2
import copy
3
import json
4
from email.utils import parseaddr
5
-import types
6
7
from .base import Resource
8
from .exceptions import SparkPostException
@@ -140,10 +139,7 @@ def _parse_address(self, address):
140
139
141
def _extract_recipients(self, recipients):
142
143
- if not (
144
- isinstance(recipients, types.ListType) or
145
- isinstance(recipients, types.DictType)
146
- ):
+ if not (isinstance(recipients, list) or isinstance(recipients, dict)):
147
raise SparkPostException('recipients must be a list or dict')
148
149
formatted_recipients = []
0 commit comments