[dataimport] remove useless assignment in massive store
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 27 Jan 2016 21:59:34 +0100
changeset 11305 118d83e65ca8
parent 11304 1dad60d54dfb
child 11306 e759631889be
[dataimport] remove useless assignment in massive store
cubicweb/dataimport/massive_store.py
--- a/cubicweb/dataimport/massive_store.py	Wed Jan 27 08:42:28 2016 +0100
+++ b/cubicweb/dataimport/massive_store.py	Wed Jan 27 21:59:34 2016 +0100
@@ -1,5 +1,5 @@
 # coding: utf-8
-# copyright 2015 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2015-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
@@ -535,9 +535,7 @@
             if not data:
                 # There is no data for these etype for this flush round.
                 continue
-            # XXX It may be interresting to directly infer the columns'
-            # names from the schema instead of using .keys()
-            columns = data[0].keys()
+            # XXX It may be interresting to directly infer the columns' names from the schema
             # XXX For now, the _create_copyfrom_buffer does a "row[column]"
             # which can lead to a key error.
             # Thus we should create dictionary with all the keys.