2012-07-05 | Paul Boddie | raw files shortlog changelog graph | Fixed the list comprehension output. | |
compiler/ast.py (file) |
1.1 --- a/compiler/ast.py Thu Jul 05 23:51:51 2012 +0200 1.2 +++ b/compiler/ast.py Thu Jul 05 23:58:28 2012 +0200 1.3 @@ -1165,7 +1165,7 @@ 1.4 return "ListComp(%r, %r)" % (self.expr, self.quals) 1.5 1.6 def __str__(self): 1.7 - return "%s %s" % (self.expr, " ".join(map(str, self.quals))) 1.8 + return "[%s %s]" % (self.expr, " ".join(map(str, self.quals))) 1.9 1.10 def visit(self, visitor, *args): 1.11 return visitor.visitListComp(self, *args)