try to please CodeFactor

This commit is contained in:
Deborah Servili 2019-09-26 14:43:25 +02:00
parent 1ea212612a
commit 5c35bd01de
No known key found for this signature in database
GPG key ID: 7E3A832850D4D7D1

View file

@ -35,7 +35,7 @@ if __name__ == '__main__':
temp['meta']['subregion'] = [] temp['meta']['subregion'] = []
values.append(temp) values.append(temp)
'''---------------- column 2 ------------------''' """---------------- column 2 ------------------"""
with open(args.csv, newline='') as csvfile: with open(args.csv, newline='') as csvfile:
csvreader = csv.reader(csvfile, delimiter=',', quotechar='"') csvreader = csv.reader(csvfile, delimiter=',', quotechar='"')
@ -72,7 +72,7 @@ if __name__ == '__main__':
if test == 0: if test == 0:
value['meta']['subregion'].append(value_name) value['meta']['subregion'].append(value_name)
'''---------------- column 3 ------------------''' """---------------- column 3 ------------------"""
with open(args.csv, newline='') as csvfile: with open(args.csv, newline='') as csvfile:
csvreader = csv.reader(csvfile, delimiter=',', quotechar='"') csvreader = csv.reader(csvfile, delimiter=',', quotechar='"')
@ -110,7 +110,7 @@ if __name__ == '__main__':
value['meta']['subregion'].append(value_name) value['meta']['subregion'].append(value_name)
'''---------------- column 4 ------------------''' """---------------- column 4 ------------------"""
with open(args.csv, newline='') as csvfile: with open(args.csv, newline='') as csvfile:
csvreader = csv.reader(csvfile, delimiter=',', quotechar='"') csvreader = csv.reader(csvfile, delimiter=',', quotechar='"')
@ -147,8 +147,8 @@ if __name__ == '__main__':
if test == 0: if test == 0:
value['meta']['subregion'].append(value_name) value['meta']['subregion'].append(value_name)
'''---------------- column 5 ------------------''' """---------------- column 5 ------------------"""
with open(args.csv, newline='') as csvfile: with open(args.csv, newline='') as csvfile:
csvreader = csv.reader(csvfile, delimiter=',', quotechar='"') csvreader = csv.reader(csvfile, delimiter=',', quotechar='"')
pass_first_line = True pass_first_line = True