diff options
| author | Aurélien Bompard | 2016-11-21 12:45:16 +0100 |
|---|---|---|
| committer | Aurélien Bompard | 2016-11-21 12:45:16 +0100 |
| commit | 0a5efbdf15a67f6e4065c78b0c70e72202e0d965 (patch) | |
| tree | eb4da32bbfb874f999736d8bf678870e08459818 /src/mailman/chains | |
| parent | 88b40de08e133122ae464de922d3a9e9c3ad1376 (diff) | |
| download | mailman-0a5efbdf15a67f6e4065c78b0c70e72202e0d965.tar.gz mailman-0a5efbdf15a67f6e4065c78b0c70e72202e0d965.tar.zst mailman-0a5efbdf15a67f6e4065c78b0c70e72202e0d965.zip | |
Fix the Flake8 ignore tags
Diffstat (limited to 'src/mailman/chains')
| -rw-r--r-- | src/mailman/chains/tests/test_accept.py | 2 | ||||
| -rw-r--r-- | src/mailman/chains/tests/test_headers.py | 2 | ||||
| -rw-r--r-- | src/mailman/chains/tests/test_owner.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/chains/tests/test_accept.py b/src/mailman/chains/tests/test_accept.py index 07ed958b0..7643818e7 100644 --- a/src/mailman/chains/tests/test_accept.py +++ b/src/mailman/chains/tests/test_accept.py @@ -60,7 +60,7 @@ Subject: Ignore config.chains['mine'] = MyChain() self.addCleanup(config.chains.pop, 'mine') hits = None - def handler(event): # noqa: E301 + def handler(event): # noqa: E306 nonlocal hits if isinstance(event, AcceptEvent): hits = event.msg['x-mailman-rule-hits'] diff --git a/src/mailman/chains/tests/test_headers.py b/src/mailman/chains/tests/test_headers.py index 7e7219118..e31111c6e 100644 --- a/src/mailman/chains/tests/test_headers.py +++ b/src/mailman/chains/tests/test_headers.py @@ -302,7 +302,7 @@ A message body. header_matches = IHeaderMatchList(self._mlist) header_matches.append('Header2', 'b+') header_matches.append('Header3', 'c+') - def get_links(): # noqa: E301 + def get_links(): # noqa: E306 return [ link for link in chain.get_links(self._mlist, Message(), {}) if link.rule.name != 'any' diff --git a/src/mailman/chains/tests/test_owner.py b/src/mailman/chains/tests/test_owner.py index 70328303b..d00f61edd 100644 --- a/src/mailman/chains/tests/test_owner.py +++ b/src/mailman/chains/tests/test_owner.py @@ -50,7 +50,7 @@ Message-ID: <ant> # This event subscriber records the event that occurs when the message # is processed by the owner chain. events = [] - def catch_event(event): # noqa: E301 + def catch_event(event): # noqa: E306 if isinstance(event, AcceptOwnerEvent): events.append(event) with event_subscribers(catch_event): |
