diff options
Diffstat (limited to 'src/mailman/handlers/cook_headers.py')
| -rw-r--r-- | src/mailman/handlers/cook_headers.py | 10 |
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 = [] |
