Skip to content

Commit

Permalink
Better formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
swozniewski authored Feb 29, 2024
1 parent 2c3d2aa commit bf59168
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tardis/utilities/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ def csv_parser(
if skiptrailingspace:
input_csv = "\n".join((line.strip() for line in input_csv.splitlines()))

if len(fieldnames)>1:
input_csv = "\n".join((line for line in input_csv.splitlines() if delimiter in line))
if len(fieldnames) > 1:
input_csv = "\n".join((line for line in input_csv.splitlines()
if delimiter in line))

replacements = replacements or {}
with StringIO(input_csv) as csv_input:
Expand Down

0 comments on commit bf59168

Please sign in to comment.