diff options
| author | Stephen J. Turnbull | 2012-03-14 13:04:30 -0700 |
|---|---|---|
| committer | Stephen J. Turnbull | 2012-03-14 13:04:30 -0700 |
| commit | 1334c986781a152449396c6a2fbc1a566ba92472 (patch) | |
| tree | cdb1f60dee49a6d89e09bcbfab918a3fee321b2e | |
| parent | f0d8e1dd29c0ed900970ceb3815b91ef25c12574 (diff) | |
| download | mailman-1334c986781a152449396c6a2fbc1a566ba92472.tar.gz mailman-1334c986781a152449396c6a2fbc1a566ba92472.tar.zst mailman-1334c986781a152449396c6a2fbc1a566ba92472.zip | |
| -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): |
