summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2000-12-20 21:34:15 +0000
committerbwarsaw2000-12-20 21:34:15 +0000
commit1e0b4d6511245867d72290e12a799d0543def07a (patch)
tree7b00ae5f070e1128fe96693736dd12e3d6a17e23
parente0ac956775f77115d22b985b3f8a80db3417757e (diff)
downloadmailman-1e0b4d6511245867d72290e12a799d0543def07a.tar.gz
mailman-1e0b4d6511245867d72290e12a799d0543def07a.tar.zst
mailman-1e0b4d6511245867d72290e12a799d0543def07a.zip
process(): List comprehensions are fun!
-rw-r--r--Mailman/Handlers/CalcRecips.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Mailman/Handlers/CalcRecips.py b/Mailman/Handlers/CalcRecips.py
index 34520f186..81f86976c 100644
--- a/Mailman/Handlers/CalcRecips.py
+++ b/Mailman/Handlers/CalcRecips.py
@@ -40,10 +40,8 @@ def process(mlist, msg, msgdata):
dont_send_to_sender = 1
# calculate the regular recipients of the message
members = mlist.GetDeliveryMembers()
- recips = []
- for m in members:
- if not mlist.GetUserOption(m, mm_cfg.DisableDelivery):
- recips.append(m)
+ recips = [m for m in members
+ if not mlist.GetUserOption(m, mm_cfg.DisableDelivery)]
# remove the sender if they don't want to receive
if dont_send_to_sender:
try: