with open(inpfile, 'rb') as csvfile:
dataReader = csv.reader(csvfile, delimiter=',')
for row in dataReader:
When I run the above code to read a CSV file, I get the following error: "_csv.Error: iterator should return strings, not bytes (did you open the file in text mode?)" I got the syntax from python documentation website. What is wrong in the above code?