Move to python3 style next.

This commit is contained in:
Ahmed Charles 2015-10-18 22:32:05 +00:00 committed by Griatch
parent b7577f13cd
commit 402cbed8fa

View file

@ -1372,10 +1372,7 @@ def from_csv(fp, field_names = None, **kwargs):
if field_names:
table.field_names = field_names
else:
if py3k:
table.field_names = [x.strip() for x in next(reader)]
else:
table.field_names = [x.strip() for x in reader.next()]
table.field_names = [x.strip() for x in next(reader)]
for row in reader:
table.add_row([x.strip() for x in row])