MCPcopy Create free account
hub / github.com/dabeaz-course/practical-python / TableFormatter

Class TableFormatter

Solutions/6_3/tableformat.py:3–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# tableformat.py
2
3class TableFormatter:
4 def headings(self, headers):
5 '''
6 Emit the table headers
7 '''
8 raise NotImplementedError()
9
10 def row(self, rowdata):
11 '''
12 Emit a single row of table data
13 '''
14 raise NotImplementedError()
15
16class TextTableFormatter(TableFormatter):
17 '''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected