[dataimport] no need to call .keys()
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 29 Jan 2016 18:57:30 +0100
changeset 11330 6adfa1e75179
parent 11329 a8cab8fb54ba
child 11331 f2ff82dfcd5c
[dataimport] no need to call .keys()
cubicweb/dataimport/massive_store.py
--- a/cubicweb/dataimport/massive_store.py	Mon Feb 01 17:50:05 2016 +0100
+++ b/cubicweb/dataimport/massive_store.py	Fri Jan 29 18:57:30 2016 +0100
@@ -400,7 +400,7 @@
             # Thus we should create dictionary with all the keys.
             columns = set()
             for d in data:
-                columns.update(d.keys())
+                columns.update(d)
             _data = []
             _base_data = dict.fromkeys(columns)
             for d in data: