13 lines
304 B
Python
13 lines
304 B
Python
from .formatter import TableFormatter
|
|
|
|
|
|
class CSVTableFormatter(TableFormatter):
|
|
def _printer(self, data):
|
|
print(",".join(str(value) for value in data))
|
|
|
|
def headings(self, headers):
|
|
return self._printer(headers)
|
|
|
|
def row(self, rowdata):
|
|
return self._printer(rowdata)
|