From 6bfc4a8471d88f5db7ca0aa3c084105c0aa1d70b Mon Sep 17 00:00:00 2001 From: Brian McKenna Date: Sun, 26 Jan 2014 10:55:31 -0700 Subject: [PATCH] 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`. --- hy/models/dict.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hy/models/dict.py b/hy/models/dict.py index d9fb626..e0e99bd 100644 --- a/hy/models/dict.py +++ b/hy/models/dict.py @@ -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()))