From 1e079f19944006b9e264ac0f2693b80b64ac465b Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Mon, 29 Oct 2012 21:32:59 -0400 Subject: [PATCH] zephyr_mirror: Use a set for current_zephyr_subs (imported from commit 2736ea13dac7d3b5914eac27ed92ddacafd6ee8e) --- bots/zephyr_mirror.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bots/zephyr_mirror.py b/bots/zephyr_mirror.py index b739fa6..cfd899b 100755 --- a/bots/zephyr_mirror.py +++ b/bots/zephyr_mirror.py @@ -140,12 +140,12 @@ def username_to_fullname(username): fullnames[username] = fetch_fullname(username) return fullnames[username] -current_zephyr_subs = {} +current_zephyr_subs = set() def ensure_subscribed(sub): if sub in current_zephyr_subs: return subs.add((sub, '*', '*')) - current_zephyr_subs[sub] = True + current_zephyr_subs.add(sub) def update_subscriptions_from_humbug(): try: