diff options
| author | Barry Warsaw | 2012-03-14 02:28:13 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2012-03-14 02:28:13 -0400 |
| commit | eb509dc0466f34f63ab6dcf159de2f9137cb3fdb (patch) | |
| tree | 2c6727277c034acc411cbccfcc0c50e14e53bd3c /src/mailman/runners/command.py | |
| parent | bcc42e2201c7172848185e5675a7b79e3d28aa0f (diff) | |
| download | mailman-eb509dc0466f34f63ab6dcf159de2f9137cb3fdb.tar.gz mailman-eb509dc0466f34f63ab6dcf159de2f9137cb3fdb.tar.zst mailman-eb509dc0466f34f63ab6dcf159de2f9137cb3fdb.zip | |
Diffstat (limited to 'src/mailman/runners/command.py')
| -rw-r--r-- | src/mailman/runners/command.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/runners/command.py b/src/mailman/runners/command.py index f13b02229..ac611ed3a 100644 --- a/src/mailman/runners/command.py +++ b/src/mailman/runners/command.py @@ -85,7 +85,7 @@ class CommandFinder: # bogus characters. Otherwise, there's nothing in the subject # that we can use. if isinstance(raw_subject, unicode): - safe_subject = raw_subject.encode('us-ascii', errors='ignore') + safe_subject = raw_subject.encode('us-ascii', 'ignore') self.command_lines.append(safe_subject) # Find the first text/plain part of the message. part = None @@ -119,7 +119,7 @@ class CommandFinder: # ASCII commands and arguments, ignore anything else. parts = [(part if isinstance(part, unicode) - else part.decode('ascii', errors='ignore')) + else part.decode('ascii', 'ignore')) for part in parts] yield parts @@ -139,7 +139,7 @@ The results of your email command are provided below. def write(self, text): if not isinstance(text, unicode): - text = text.decode(self.charset, errors='ignore') + text = text.decode(self.charset, 'ignore') self._output.write(text) def __unicode__(self): |
