11 lines
235 B
Python
11 lines
235 B
Python
# csv.py
|
|
|
|
from ..formatter import TableFormatter
|
|
|
|
class CSVTableFormatter(TableFormatter):
|
|
def headings(self, headers):
|
|
print(','.join(headers))
|
|
|
|
def row(self, rowdata):
|
|
print(','.join(str(d) for d in rowdata))
|