From b87447ffe4a20793e22884a99a7f9afe3a803004 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 1 Apr 2016 16:40:39 -0400 Subject: Don't use `flake8: noqa`. This suppresses all errors in the file. Use `noqa`, although pep8 doesn't honor this for all errors. There may be a plugin which helps. --- src/mailman/runners/command.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mailman/runners/command.py') diff --git a/src/mailman/runners/command.py b/src/mailman/runners/command.py index 15ccca438..13d52ce75 100644 --- a/src/mailman/runners/command.py +++ b/src/mailman/runners/command.py @@ -168,9 +168,9 @@ class CommandRunner(Runner): # Include just a few key pieces of information from the original: the # sender, date, and message id. print(_('- Original message details:'), file=results) - subject = msg.get('subject', 'n/a') # flake8: noqa - date = msg.get('date', 'n/a') # flake8: noqa - from_ = msg.get('from', 'n/a') # flake8: noqa + subject = msg.get('subject', 'n/a') # noqa + date = msg.get('date', 'n/a') # noqa + from_ = msg.get('from', 'n/a') # noqa print(_(' From: $from_'), file=results) print(_(' Subject: $subject'), file=results) print(_(' Date: $date'), file=results) -- cgit v1.2.3-70-g09d2