Closed KernelA closed 2 years ago
We must use newline='' with a CSV writer according official documentation.
newline=''
On Windows, write_records_to_file generates CSV file with empty lines.
write_records_to_file
I added context manager instead of explicit close file object and set encoding to the utf-8.
close
@KernelA Thank you very much for this fix!
We must use
newline=''
with a CSV writer according official documentation.On Windows,
write_records_to_file
generates CSV file with empty lines.I added context manager instead of explicit
close
file object and set encoding to the utf-8.