(name)
| 48 | print('</tr>') |
| 49 | |
| 50 | def create_formatter(name): |
| 51 | if name == 'text': |
| 52 | formatter = TextTableFormatter |
| 53 | elif name == 'csv': |
| 54 | formatter = CSVTableFormatter |
| 55 | elif name == 'html': |
| 56 | formatter = HTMLTableFormatter |
| 57 | else: |
| 58 | raise RuntimeError('Unknown format %s' % name) |
| 59 | return formatter() |
| 60 | |
| 61 | |
| 62 |