diff options
| author | Barry Warsaw | 2012-10-31 17:56:57 +0100 |
|---|---|---|
| committer | Barry Warsaw | 2012-10-31 17:56:57 +0100 |
| commit | 23fca2302ea2a8c5bad0a7aa450ea210ace7cf27 (patch) | |
| tree | ebb3cdd2b226be3b8fa5963379b3ae6bd49f6a8c /src/mailman/runners/digest.py | |
| parent | 869cc27c43cfd8bcd90613843b23e80ffbb6be85 (diff) | |
| download | mailman-23fca2302ea2a8c5bad0a7aa450ea210ace7cf27.tar.gz mailman-23fca2302ea2a8c5bad0a7aa450ea210ace7cf27.tar.zst mailman-23fca2302ea2a8c5bad0a7aa450ea210ace7cf27.zip | |
Diffstat (limited to 'src/mailman/runners/digest.py')
| -rw-r--r-- | src/mailman/runners/digest.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mailman/runners/digest.py b/src/mailman/runners/digest.py index f87dd4e76..a2054f412 100644 --- a/src/mailman/runners/digest.py +++ b/src/mailman/runners/digest.py @@ -30,7 +30,6 @@ import logging # cStringIO doesn't support unicode. from StringIO import StringIO -from contextlib import nested from copy import deepcopy from email.header import Header from email.message import Message @@ -319,8 +318,8 @@ class DigestRunner(Runner): volume = msgdata['volume'] digest_number = msgdata['digest_number'] # Backslashes make me cry. - with Mailbox(msgdata['digest_path']) as mailbox, \ - _.using(mlist.preferred_language.code): + code = mlist.preferred_language.code + with Mailbox(msgdata['digest_path']) as mailbox, _.using(code): # Create the digesters. mime_digest = MIMEDigester(mlist, volume, digest_number) rfc1153_digest = RFC1153Digester(mlist, volume, digest_number) |
