mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-13 15:57:14 +03:00
collate.py: Also newline='\n' on other open-for-write
This commit is contained in:
parent
dbfa50739f
commit
c17e6ecade
@ -133,7 +133,7 @@ def addmodules(data):
|
||||
if isfile(outfile):
|
||||
__make_backup(outfile)
|
||||
|
||||
with open(outfile, 'w') as csvfile:
|
||||
with open(outfile, 'w', newline='\n') as csvfile:
|
||||
writer = csv.DictWriter(csvfile, fields, extrasaction='ignore')
|
||||
writer.writeheader()
|
||||
|
||||
@ -186,7 +186,7 @@ def addships(data):
|
||||
if isfile(shipfile):
|
||||
__make_backup(shipfile)
|
||||
|
||||
with open(shipfile, 'w') as csvfile:
|
||||
with open(shipfile, 'w', newline='\n') as csvfile:
|
||||
writer = csv.DictWriter(csvfile, ['id', 'symbol', 'name'])
|
||||
writer.writeheader()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user