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:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user