# HG changeset patch # User Paul Boddie # Date 1362270718 -3600 # Node ID 56765af992d19526bbbb5f4677e57d4046bba778 # Parent 17bf6f1fc1343f9cf948f4533cbea2e01c2eeb5f Fixed dictionary output string representation. diff -r 17bf6f1fc134 -r 56765af992d1 compiler/ast.py --- a/compiler/ast.py Thu Feb 21 22:19:11 2013 +0100 +++ b/compiler/ast.py Sun Mar 03 01:31:58 2013 +0100 @@ -654,7 +654,7 @@ return "Dict(%r)" % (self.items,) def __str__(self): - return "{%s}" % ", ".join(map(str, self.items)) + return "{%s}" % ", ".join([("%s : %s" % (key, value)) for (key, value) in self.items]) def visit(self, visitor, *args): return visitor.visitDict(self, *args)