Skip to content

Commit 9339845

Browse files
committed
change the
open(input_file, 'rb') to open(input_file, 'rU') to solve the "_csv.Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode?"
1 parent 2ebc3e7 commit 9339845

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genabout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def __init__(self):
5050

5151
def read_input(self, input_file, mapping):
5252
about_resource, about_file, name, version = self.config_mapping(mapping)
53-
csvfile = csv.DictReader(open(input_file, 'rb'))
53+
csvfile = csv.DictReader(open(input_file, 'rU'))
5454
components_list = []
5555
for line in csvfile:
5656
file_list = []

0 commit comments

Comments
 (0)