Traverse and separate the given *items* with a comma and append it to the buffer. If *items* is a single item sequence, a trailing comma will be added.
(self, traverser, items)
| 706 | f(x) |
| 707 | |
| 708 | def items_view(self, traverser, items): |
| 709 | """Traverse and separate the given *items* with a comma and append it to |
| 710 | the buffer. If *items* is a single item sequence, a trailing comma |
| 711 | will be added.""" |
| 712 | if len(items) == 1: |
| 713 | traverser(items[0]) |
| 714 | self.write(",") |
| 715 | else: |
| 716 | self.interleave(lambda: self.write(", "), traverser, items) |
| 717 | |
| 718 | def maybe_newline(self): |
| 719 | """Adds a newline if it isn't the start of generated source""" |
no test coverage detected