summaryrefslogtreecommitdiff
path: root/src/mailman/handlers/cook_headers.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-07-28 23:10:56 -0400
committerBarry Warsaw2016-07-28 23:10:56 -0400
commit90e84bee5f47cbcdb9e9c367c60a877e325ef3e7 (patch)
treebb7d2df3af049c6e84d65fd25cc0258b6af6ebb9 /src/mailman/handlers/cook_headers.py
parent86b25ba2e3bac0e034235d322c7c77080d737833 (diff)
downloadmailman-90e84bee5f47cbcdb9e9c367c60a877e325ef3e7.tar.gz
mailman-90e84bee5f47cbcdb9e9c367c60a877e325ef3e7.tar.zst
mailman-90e84bee5f47cbcdb9e9c367c60a877e325ef3e7.zip
Diffstat (limited to 'src/mailman/handlers/cook_headers.py')
-rw-r--r--src/mailman/handlers/cook_headers.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mailman/handlers/cook_headers.py b/src/mailman/handlers/cook_headers.py
index 23a65cdcd..297155d90 100644
--- a/src/mailman/handlers/cook_headers.py
+++ b/src/mailman/handlers/cook_headers.py
@@ -98,7 +98,7 @@ def process(mlist, msg, msgdata):
# A convenience function, requires nested scopes. pair is (name, addr)
new = []
d = {}
- def add(pair): # noqa
+ def add(pair): # noqa: E301
lcaddr = pair[1].lower()
if lcaddr in d:
return
@@ -137,10 +137,10 @@ def process(mlist, msg, msgdata):
# above code?
# Also skip Cc if this is an anonymous list as list posting address
# is already in From and Reply-To in this case.
- if (mlist.personalize is Personalization.full and
- mlist.reply_goes_to_list is not
- ReplyToMunging.point_to_list and # noqa
- not mlist.anonymous_list):
+ if (mlist.personalize is Personalization.full
+ and mlist.reply_goes_to_list is not # noqa: W503
+ ReplyToMunging.point_to_list
+ and not mlist.anonymous_list): # noqa: W503
# Watch out for existing Cc headers, merge, and remove dups. Note
# that RFC 2822 says only zero or one Cc header is allowed.
new = []