Fix a lint warning in notifications.py caught by newer pyflakes (0.9.1)

zerver/lib/notifications.py:353: list comprehension redefines 'msg' from line 336

(imported from commit 094a21616f8fe7ffe05719c6de6449ade5c43517)
This commit is contained in:
Yoyo Zhou
2015-08-19 11:36:26 -07:00
parent 54adbb1737
commit 5f74e6e76d

View File

@@ -348,9 +348,9 @@ def handle_missedmessage_emails(user_profile_id, missed_email_events):
)
else:
all_messages = [
msg
msg_
for msg_list in messages_by_recipient_subject.values()
for msg in msg_list
for msg_ in msg_list
]
unique_messages = {m.id: m for m in all_messages}
do_send_missedmessage_events(