From 88d6c6f3ce1b84f6dc59805610e1886d407334ff Mon Sep 17 00:00:00 2001 From: autocommit Date: Mon, 1 Jun 2020 01:46:32 +0000 Subject: [PATCH] OK no hashable errors anymore I think I got it working. --- brutaldon/threadtree.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/brutaldon/threadtree.py b/brutaldon/threadtree.py index 327e375..a429e48 100644 --- a/brutaldon/threadtree.py +++ b/brutaldon/threadtree.py @@ -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: