requestbackport: In python3, Entry isn't hashable

This commit is contained in:
Stefano Rivera 2019-09-04 19:32:59 -03:00
parent 301569e809
commit 8bdf4f839a

View File

@ -102,7 +102,12 @@ def check_existing(package, destinations):
Logger.normal("There are existing bug reports that look similar to your " Logger.normal("There are existing bug reports that look similar to your "
"request. Please check before continuing:") "request. Please check before continuing:")
for bug in sorted(set(bug_task.bug for bug_task in bugs)): by_id = {}
for bug_task in bugs:
bug = bug_task.bug
by_id[bug.id] = bug
for id_, bug in sorted(by_id.items()):
Logger.normal(" * LP: #%-7i: %s %s", bug.id, bug.title, bug.web_link) Logger.normal(" * LP: #%-7i: %s %s", bug.id, bug.title, bug.web_link)
confirmation_prompt() confirmation_prompt()