1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-23 07:20:55 +03:00

revert to set

This commit is contained in:
James Kasten
2015-03-30 13:33:44 -07:00
parent 846cbc728c
commit 9ffcbf9934

View File

@@ -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