summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/ToDigest.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/Handlers/ToDigest.py')
-rw-r--r--Mailman/Handlers/ToDigest.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Mailman/Handlers/ToDigest.py b/Mailman/Handlers/ToDigest.py
index 21acb10c1..5c5d4105b 100644
--- a/Mailman/Handlers/ToDigest.py
+++ b/Mailman/Handlers/ToDigest.py
@@ -40,7 +40,6 @@ from email.MIMEMessage import MIMEMessage
from email.MIMEText import MIMEText
from email.Parser import Parser
from email.Utils import getaddresses, formatdate
-from types import ListType
from Mailman import Errors
from Mailman import i18n
@@ -238,7 +237,7 @@ def send_i18n_digests(mlist, mboxfp):
username = ''
addresses = getaddresses([Utils.oneline(msg.get('from', ''), lcset)])
# Take only the first author we find
- if isinstance(addresses, ListType) and addresses:
+ if isinstance(addresses, list) and addresses:
username = addresses[0][0]
if not username:
username = addresses[0][1]