1.1 --- a/micropython/report.py Thu Oct 24 16:50:13 2013 +0200
1.2 +++ b/micropython/report.py Thu Oct 24 22:43:09 2013 +0200
1.3 @@ -1181,7 +1181,7 @@
1.4 def visitAssTuple(self, node):
1.5 self._span_start("tuple")
1.6 self.stream.write("(")
1.7 - self._sequence(node)
1.8 + self._sequence(node, True)
1.9 self.stream.write(")")
1.10 self._span_end()
1.11
1.12 @@ -1463,14 +1463,14 @@
1.13
1.14 # Output preparation methods.
1.15
1.16 - def _sequence(self, node):
1.17 + def _sequence(self, node, istuple=False):
1.18 first = True
1.19 for n in node.nodes:
1.20 if not first:
1.21 self.stream.write(", ")
1.22 self.dispatch(n)
1.23 first = False
1.24 - if len(node.nodes) == 1:
1.25 + if len(node.nodes) == 1 and istuple:
1.26 self.stream.write(", ")
1.27
1.28 def _mapping(self, node):