mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
pep8: Fix E303 violations.
This commit is contained in:
committed by
Tim Abbott
parent
9f0383520c
commit
8c0c12c1d9
@@ -1479,7 +1479,6 @@ def notify_subscriptions_added(user_profile, sub_pairs, stream_emails, no_log=Fa
|
||||
|
||||
def get_peer_user_ids_for_stream_change(stream, altered_users, subscribed_users):
|
||||
# type: (Stream, Iterable[UserProfile], Iterable[UserProfile]) -> Set[int]
|
||||
|
||||
'''
|
||||
altered_users is a list of users that we are adding/removing
|
||||
subscribed_users is the list of already subscribed users
|
||||
@@ -1620,7 +1619,6 @@ def bulk_add_subscriptions(streams, users):
|
||||
user_id=added_user.id)
|
||||
send_event(event, peer_user_ids)
|
||||
|
||||
|
||||
return ([(user_profile, stream) for (user_profile, recipient_id, stream) in new_subs] +
|
||||
[(sub.user_profile, stream) for (sub, stream) in subs_to_activate],
|
||||
already_subscribed)
|
||||
@@ -2660,7 +2658,6 @@ def do_update_message(user_profile, message, subject, propagate_mode, content, r
|
||||
event['subject_links'] = bugdown.subject_links(message.sender.realm.domain.lower(), subject)
|
||||
edit_history_event["prev_subject"] = orig_subject
|
||||
|
||||
|
||||
if propagate_mode in ["change_later", "change_all"]:
|
||||
propagate_query = Q(recipient = message.recipient, subject = orig_subject)
|
||||
# We only change messages up to 2 days in the past, to avoid hammering our
|
||||
|
||||
Reference in New Issue
Block a user