diff options
| author | bwarsaw | 2006-04-17 13:10:09 +0000 |
|---|---|---|
| committer | bwarsaw | 2006-04-17 13:10:09 +0000 |
| commit | 953d9bff95f70b66b1b6c04340959185a11c3d10 (patch) | |
| tree | bd6aa3c6d30bcace2d628da71bc121f751ff1be2 /Mailman/Handlers/ToDigest.py | |
| parent | 0ed815a216c7bb6f820cfdf99fc8d31bcfd19fc0 (diff) | |
| download | mailman-953d9bff95f70b66b1b6c04340959185a11c3d10.tar.gz mailman-953d9bff95f70b66b1b6c04340959185a11c3d10.tar.zst mailman-953d9bff95f70b66b1b6c04340959185a11c3d10.zip | |
Diffstat (limited to 'Mailman/Handlers/ToDigest.py')
| -rw-r--r-- | Mailman/Handlers/ToDigest.py | 3 |
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] |
