micropython

Changeset

518:e6f70a977e09
2012-06-03 Paul Boddie raw files shortlog changelog graph Fixed print node output where streams are indicated.
micropython/report.py (file)
     1.1 --- a/micropython/report.py	Sun Jun 03 19:51:38 2012 +0200
     1.2 +++ b/micropython/report.py	Sun Jun 03 20:50:19 2012 +0200
     1.3 @@ -750,6 +750,7 @@
     1.4          if node.dest is not None:
     1.5              self.stream.write(">>\n")
     1.6              self.dispatch(node.dest)
     1.7 +            self.stream.write(",\n")
     1.8          for n in node.nodes:
     1.9              self.dispatch(n)
    1.10              self.stream.write(",\n")
    1.11 @@ -761,7 +762,9 @@
    1.12          if node.dest is not None:
    1.13              self.stream.write(">>\n")
    1.14              self.dispatch(node.dest)
    1.15 -        first = 1
    1.16 +            first = 0
    1.17 +        else:
    1.18 +            first = 1
    1.19          for n in node.nodes:
    1.20              if not first:
    1.21                  self.stream.write(",\n")