diff --git a/relational/relation.py b/relational/relation.py index 4524834..4523237 100644 --- a/relational/relation.py +++ b/relational/relation.py @@ -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