Skip to content
This repository has been archived by the owner on Sep 11, 2019. It is now read-only.

Fix iteration over pubsub list #6

Merged
merged 1 commit into from
Jan 19, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion fakenewsredis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,7 @@ def publish(self, channel, message):
``message`` to them for the given ``channel``.
"""
count = 0
for i, ps in enumerate(self._pubsubs):
for i, ps in list(enumerate(self._pubsubs)):
if not ps.subscribed:
del self._pubsubs[i]
continue
Expand Down