Commit 4bc06a77 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[2937] Parse CSV in strict mode

Don't accept invalid inputs. It seems some versions of the csv library
rejected this before, but some didn't. Making sure all of them reject
now, to get more reliable operation and consistent behavior.
parent 9204d1f5
......@@ -75,7 +75,7 @@ class UserManager:
# Just let any file read error bubble up; it will
# be caught in the run() method
with open(self.options.output_file, newline='') as csvfile:
reader = csv.reader(csvfile)
reader = csv.reader(csvfile, strict=True)
for row in reader:
self.user_info[row[0]] = row
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment