(name)
| 42 | print('</tr>') |
| 43 | |
| 44 | def create_formatter(name): |
| 45 | if name == 'text': |
| 46 | formatter_cls = TextTableFormatter |
| 47 | elif name == 'csv': |
| 48 | formatter_cls = CSVTableFormatter |
| 49 | elif name == 'html': |
| 50 | formatter_cls = HTMLTableFormatter |
| 51 | else: |
| 52 | raise RuntimeError('Unknown format %s' % name) |
| 53 | return formatter_cls() |
| 54 | |
| 55 | |
| 56 |