#302: adds unit test and doc tidying.

This commit is contained in:
Romain Dorgueil
2019-06-01 09:32:22 +02:00
parent 94c5f1a45a
commit dee719f070
2 changed files with 19 additions and 16 deletions

View File

@ -54,16 +54,10 @@ class CsvHandler(FileHandler):
@use_context
class CsvReader(FileReader, CsvHandler):
"""
Reads a CSV and yield the values as dicts.
Reads a CSV and yield the values.
"""
skip = Option(
int,
default=0,
__doc__="""
If set and greater than zero, the reader will skip this amount of lines.
""",
)
skip = Option(int, default=0, __doc__="If set and greater than zero, the reader will skip this amount of lines.")
@Method(
positional=False,
@ -96,14 +90,7 @@ class CsvReader(FileReader, CsvHandler):
@use_context
class CsvWriter(FileWriter, CsvHandler):
skip_header = Option(
bool,
default=False,
__doc__="""
If true, the writer will not produce a file header
""",
)
skip_header = Option(bool, default=False, __doc__="If true, the writer will not produce a file header.")
@Method(
__doc__="""