dataimport/deprecated.py
changeset 10669 155c29e0ed1c
parent 10663 54b8a1f249fb
child 10688 fa29f3628a1b
--- a/dataimport/deprecated.py	Tue Sep 15 17:10:58 2015 +0200
+++ b/dataimport/deprecated.py	Fri Sep 18 14:29:53 2015 +0200
@@ -79,7 +79,7 @@
 
     >>> data = lazytable(ucsvreader(open(filename)))
     """
-    header = reader.next()
+    header = next(reader)
     for row in reader:
         yield dict(zip(header, row))