Skip to content

Commit

Permalink
Fix fromtsv() to pass on header argument
Browse files Browse the repository at this point in the history
fromtsv() is a helper that calls fromcsv() with a different dialect set. However it was not passing on the header argument.
  • Loading branch information
jfitzell committed Jun 5, 2022
1 parent 49ef155 commit 9c999d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion petl/io/csv.py
Expand Up @@ -71,7 +71,7 @@ def fromtsv(source=None, encoding=None, errors='strict', header=None,
"""

csvargs.setdefault('dialect', 'excel-tab')
return fromcsv(source, encoding=encoding, errors=errors, **csvargs)
return fromcsv(source, encoding=encoding, errors=errors, header=header, **csvargs)


def tocsv(table, source=None, encoding=None, errors='strict', write_header=True,
Expand Down

0 comments on commit 9c999d1

Please sign in to comment.