Attempt to fix HyDict#items for Python 3

Looks like Python 3 changed `zip` to returning an iterable and not a
list. We should be good to just wrap the call in `list`.
This commit is contained in:
Brian McKenna 2014-01-26 10:55:31 -07:00
parent 990d901d65
commit 6bfc4a8471

View File

@ -36,4 +36,4 @@ class HyDict(HyList):
return self[1::2]
def items(self):
return zip(self.keys(), self.values())
return list(zip(self.keys(), self.values()))