diff options
| author | Barry Warsaw | 2016-04-01 16:40:39 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2016-04-01 16:40:39 -0400 |
| commit | b87447ffe4a20793e22884a99a7f9afe3a803004 (patch) | |
| tree | 332b20714199bc83a9b2d592682e287866ed9a1d /src/mailman/runners | |
| parent | f7e9e4698bdd4cee39c9eb485296cbbfa32369a9 (diff) | |
| download | mailman-b87447ffe4a20793e22884a99a7f9afe3a803004.tar.gz mailman-b87447ffe4a20793e22884a99a7f9afe3a803004.tar.zst mailman-b87447ffe4a20793e22884a99a7f9afe3a803004.zip | |
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.
Diffstat (limited to 'src/mailman/runners')
| -rw-r--r-- | src/mailman/runners/command.py | 6 | ||||
| -rw-r--r-- | src/mailman/runners/rest.py | 2 |
2 files changed, 4 insertions, 4 deletions
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) diff --git a/src/mailman/runners/rest.py b/src/mailman/runners/rest.py index 5a76d22c1..0100b0db9 100644 --- a/src/mailman/runners/rest.py +++ b/src/mailman/runners/rest.py @@ -50,7 +50,7 @@ class RESTRunner(Runner): # server. self._server = make_server() self._event = threading.Event() - def stopper(event, server): # flake8: noqa + def stopper(event, server): # noqa event.wait() server.shutdown() self._thread = threading.Thread( |
