Script: newline caused append behavior (undesirable).

This commit is contained in:
scoobybejesus 2020-11-14 20:35:25 -05:00
parent 8ec8c2f302
commit a0f062cdf5
1 changed files with 2 additions and 3 deletions

View File

@ -106,8 +106,7 @@ stage3 = "InputFile-pycleaned.csv"
## i.e., (1.01) -> -1.01 (1,000.00) -> -1000.00
with open(stage2) as fin, open(stage3, 'w', newline='') as fout:
with open(stage2) as fin, open(stage3, 'w') as fout:
rdr = csv.reader(fin, quoting=csv.QUOTE_ALL)
wtr = csv.writer(fout)