--- a/dataimport/csv.py Tue Sep 15 17:10:58 2015 +0200
+++ b/dataimport/csv.py Fri Sep 18 14:29:53 2015 +0200
@@ -87,7 +87,7 @@
it = iter(csvmod.reader(stream, delimiter=delimiter, quotechar=quotechar))
if not ignore_errors:
if skipfirst:
- it.next()
+ next(it)
for row in it:
decoded = [item.decode(encoding) for item in row]
if not skip_empty or any(decoded):
@@ -95,13 +95,13 @@
else:
if skipfirst:
try:
- row = it.next()
+ row = next(it)
except csvmod.Error:
pass
# Safe version, that can cope with error in CSV file
while True:
try:
- row = it.next()
+ row = next(it)
# End of CSV, break
except StopIteration:
break