Skip to content

Commit 67b464e

Browse files
committed
Remove types module it is not compatible in python 3x
1 parent 11279cf commit 67b464e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

sparkpost/transmissions.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import copy
33
import json
44
from email.utils import parseaddr
5-
import types
65

76
from .base import Resource
87
from .exceptions import SparkPostException
@@ -140,10 +139,7 @@ def _parse_address(self, address):
140139

141140
def _extract_recipients(self, recipients):
142141

143-
if not (
144-
isinstance(recipients, types.ListType) or
145-
isinstance(recipients, types.DictType)
146-
):
142+
if not (isinstance(recipients, list) or isinstance(recipients, dict)):
147143
raise SparkPostException('recipients must be a list or dict')
148144

149145
formatted_recipients = []

0 commit comments

Comments
 (0)