Making dict comprehension work with py2.6

This commit is contained in:
Thomas Mashek 2013-03-12 12:39:23 -07:00
parent d251e177d8
commit 8a88b2a0f0

View File

@ -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