OK no hashable errors anymore

I think I got it working.
This commit is contained in:
autocommit 2020-06-01 01:46:32 +00:00 committed by Cy
parent b221e6a758
commit 88d6c6f3ce
No known key found for this signature in database
GPG Key ID: F66D599380F88521
1 changed files with 1 additions and 7 deletions

View File

@ -1,13 +1,7 @@
from pprint import pprint
def maketree(descendants):
try:
lookup = [(descendant.id, descendant) for descendant in descendants]
print(descendants[0][0])
lookup = dict(descendants)
except:
pprint(lookup)
raise
lookup = dict((descendant.id, descendant) for descendant in descendants)
replies = {}
roots = set()
for descendant in descendants: