[dataimport/test] update call to ucsvreader
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 04 Nov 2015 09:22:35 +0100
changeset 10868 ffb5b6c25cec
parent 10867 ca73ee6d24ad
child 10869 575982c948a9
[dataimport/test] update call to ucsvreader Silences warning: [3.20] 'separator' kwarg is deprecated, use 'delimiter' instead
dataimport/test/test_massive_store.py
--- a/dataimport/test/test_massive_store.py	Wed Nov 04 09:09:08 2015 +0100
+++ b/dataimport/test/test_massive_store.py	Wed Nov 04 09:22:35 2015 +0100
@@ -56,7 +56,7 @@
         timezone_code = dict(cnx.execute('Any C, X WHERE X is TimeZone, X code C'))
         # Push data
         for ind, infos in enumerate(ucsvreader(open(dumpname, 'rb'),
-                                               separator='\t',
+                                               delimiter='\t',
                                                ignore_errors=True)):
             latitude = self.cast(float, infos[4])
             longitude = self.cast(float, infos[5])