From 8a88b2a0f08caba6c79913d3aff1944c8cb9a0bd Mon Sep 17 00:00:00 2001 From: Thomas Mashek Date: Tue, 12 Mar 2013 12:39:23 -0700 Subject: [PATCH] Making dict comprehension work with py2.6 --- hy/macros.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hy/macros.py b/hy/macros.py index 200546c..4430c48 100644 --- a/hy/macros.py +++ b/hy/macros.py @@ -49,7 +49,7 @@ def process(tree): return ntree if isinstance(tree, HyDict): - obj = HyDict({process(x): process(tree[x]) for x in tree}) + obj = HyDict(dict((process(x), process(tree[x])) for x in tree)) obj.replace(tree) return obj