Updated csv_writer

This commit is contained in:
Oliver 2016-05-15 16:13:30 +10:00
parent 725bf9f49c
commit 3b00121a35
1 changed files with 30 additions and 39 deletions

View File

@ -25,8 +25,6 @@ def WriteCSV(filename, groups, net, headings, prefs):
else:
return False
try:
with open(filename, "w") as f:
writer = csv.writer(f, delimiter=delimiter, lineterminator="\n")
@ -67,10 +65,3 @@ def WriteCSV(filename, groups, net, headings, prefs):
writer.writerow(["Date:",net.getDate()])
return True
except BaseException as e:
print(str(e))
return False
return True