We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c66429 commit 35ef4aaCopy full SHA for 35ef4aa
1 file changed
easybuild/framework/easyconfig/easyconfig.py
@@ -742,11 +742,12 @@ def make_hashable(val):
742
val = tuple([(key, make_hashable(val)) for (key, val) in sorted(val.items())])
743
return val
744
745
- tup = ()
+ lst = []
746
for (key, val) in sorted(self.asdict().items()):
747
- tup += (key, make_hashable(val))
+ lst.append((key, make_hashable(val)))
748
749
- return hash(tup)
+ # a list is not hashable, but a tuple is
750
+ return hash(tuple(lst))
751
752
def asdict(self):
753
"""
0 commit comments