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 authored and juarezr committed Jun 8, 2022
1 parent 49ef155 commit 0be2735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion petl/io/csv.py
Original file line number Diff line number Diff line change
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 0be2735

Please sign in to comment.