2013-03-03 | Paul Boddie | raw files shortlog changelog graph | Fixed dictionary output string representation. | |
compiler/ast.py (file) |
1.1 --- a/compiler/ast.py Thu Feb 21 22:19:11 2013 +0100 1.2 +++ b/compiler/ast.py Sun Mar 03 01:31:58 2013 +0100 1.3 @@ -654,7 +654,7 @@ 1.4 return "Dict(%r)" % (self.items,) 1.5 1.6 def __str__(self): 1.7 - return "{%s}" % ", ".join(map(str, self.items)) 1.8 + return "{%s}" % ", ".join([("%s : %s" % (key, value)) for (key, value) in self.items]) 1.9 1.10 def visit(self, visitor, *args): 1.11 return visitor.visitDict(self, *args)