Force \n as endline

Closes: #15

On windows python uses \r\n when saving, but \n when loading so it is a mess.

So i need to force it.
master
Salvo 'LtWorf' Tomaselli 2020-08-27 16:34:42 +07:00
parent c44a9abff4
commit 821b96c6e8
No known key found for this signature in database
GPG Key ID: B3A7CF0C801886CF
1 changed files with 1 additions and 1 deletions

@ -113,7 +113,7 @@ class Relation:
format as defined in RFC4180.
'''
import csv
with open(filename, 'w') as fp:
with open(filename, 'w', newline='\n') as fp:
writer = csv.writer(fp) # Creating csv writer
# It wants an iterable containing iterables