diff options
| author | Barry Warsaw | 2009-12-08 22:39:10 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2009-12-08 22:39:10 -0500 |
| commit | 3d65590999f5288307ecb0df6ae1b77241869f61 (patch) | |
| tree | 7047453b1ddfbc6d5715834553f46e3362d3e1da /src/mailman/queue/command.py | |
| parent | 24f92b6c842bfa3701cb708e4aee3c991f206c9d (diff) | |
| download | mailman-3d65590999f5288307ecb0df6ae1b77241869f61.tar.gz mailman-3d65590999f5288307ecb0df6ae1b77241869f61.tar.zst mailman-3d65590999f5288307ecb0df6ae1b77241869f61.zip | |
Diffstat (limited to 'src/mailman/queue/command.py')
| -rw-r--r-- | src/mailman/queue/command.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/mailman/queue/command.py b/src/mailman/queue/command.py index f36f9a31d..d5ce708b1 100644 --- a/src/mailman/queue/command.py +++ b/src/mailman/queue/command.py @@ -183,14 +183,16 @@ class CommandRunner(Runner): 'Invalid status: %s' % status) if status == ContinueProcessing.no: break - # All done, send the response. - if len(finder.command_lines) > 0: + # All done. Strip blank lines and send the response. + lines = filter(None, (line.strip() for line in finder.command_lines)) + if len(lines) > 0: print >> results, _('\n- Unprocessed:') - for line in finder.command_lines: + for line in lines: print >> results, line - if len(finder.ignored_lines) > 0: + lines = filter(None, (line.strip() for line in finder.ignored_lines)) + if len(lines) > 0: print >> results, _('\n- Ignored:') - for line in finder.ignored_lines: + for line in lines: print >> results, line print >> results, _('\n- Done.') # Send a reply, but do not attach the original message. This is a |
