Merge pull request #40 from tenach/bugfix/dict-comprehension-cpy-2.6

Making dict comprehension work with py2.6
This commit is contained in:
Paul Tagliamonte 2013-03-12 12:50:05 -07:00
commit cbc964037d

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