From 9ffcbf9934f3dbba90d8e84299c80c43abe8adbd Mon Sep 17 00:00:00 2001 From: James Kasten Date: Mon, 30 Mar 2015 13:33:44 -0700 Subject: [PATCH] revert to set --- letsencrypt/client/auth_handler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/letsencrypt/client/auth_handler.py b/letsencrypt/client/auth_handler.py index c264ee239..f0b257984 100644 --- a/letsencrypt/client/auth_handler.py +++ b/letsencrypt/client/auth_handler.py @@ -397,13 +397,13 @@ def _find_dumb_path(challs, preferences): path = [] # This cannot be a set() because POP challenge is not currently hashable - satisfied = [] + satisfied = set() for pref_c in preferences: for i, offered_chall in enumerate(challs): if (isinstance(offered_chall, pref_c) and is_preferred(offered_chall, satisfied)): path.append(i) - satisfied.append(offered_chall) + satisfied.add(offered_chall) return path