[dataimport] py3k doesn't like + on dict_items objects
authorJulien Cristau <julien.cristau@logilab.fr>
Mon, 21 Dec 2015 15:43:49 +0100
changeset 11009 d5962fb5bb8e
parent 11008 de86c6592cc7
child 11010 09be4709c8c0
[dataimport] py3k doesn't like + on dict_items objects
dataimport/pgstore.py
--- a/dataimport/pgstore.py	Wed Jul 16 10:48:47 2014 +0200
+++ b/dataimport/pgstore.py	Mon Dec 21 15:43:49 2015 +0100
@@ -339,10 +339,10 @@
                         new_datalist.append(data)
                 _inlined_relations_sql[statement] = new_datalist
             _execmany_thread(self.system_source.get_connection,
-                             self._sql_eids.items()
-                             + _entities_sql.items()
-                             + _relations_sql.items()
-                             + _inlined_relations_sql.items(),
+                             list(self._sql_eids.items())
+                             + list(_entities_sql.items())
+                             + list(_relations_sql.items())
+                             + list(_inlined_relations_sql.items()),
                              dump_output_dir=self.dump_output_dir,
                              support_copy_from=self.support_copy_from,
                              encoding=self.dbencoding)