From 332164aa20fac4e69b199a2734c14dbeedcbbe74 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 31 Jul 2014 21:58:30 +0000 Subject: [PATCH] RSS: Fix Python2.6 compatibility. --- plugins/RSS/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/RSS/plugin.py b/plugins/RSS/plugin.py index 2619dad00..190aed51c 100644 --- a/plugins/RSS/plugin.py +++ b/plugins/RSS/plugin.py @@ -273,7 +273,7 @@ class RSS(callbacks.Plugin): if entry.id not in feed.announced_entries] if not new_entries: return [] - feed.announced_entries |= {entry.id for entry in new_entries} + feed.announced_entries |= set(entry.id for entry in new_entries) # We keep a little more because we don't want to re-announce # oldest entries if one of the newest gets removed. feed.announced_entries.truncate(2*len(entries))