(self, function)
| 130 | self.colon = True |
| 131 | |
| 132 | def doIO(self, function): |
| 133 | if self.first: |
| 134 | self.first = False |
| 135 | self.colon = True |
| 136 | else: |
| 137 | function(COLON if self.colon else COMMA) |
| 138 | self.colon = not self.colon |
| 139 | |
| 140 | def write(self): |
| 141 | self.doIO(self.protocol.trans.write) |