From 4058f363d69159b7c0193b6bd873aa0ee0621a89 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sat, 6 Apr 2019 21:17:28 +0100 Subject: [PATCH] More robust RealDictRow population In the presence of repeated columns the mapping would have remained into into the dictionary. Now it is removed. Fix #884 --- lib/extras.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extras.py b/lib/extras.py index 42c0d3c9..f9d3cf6a 100644 --- a/lib/extras.py +++ b/lib/extras.py @@ -280,7 +280,7 @@ class RealDictRow(OrderedDict): # We are in the row building phase mapping = self[RealDictRow] super(RealDictRow, self).__setitem__(mapping[key], value) - if len(self) == len(mapping) + 1: + if key == len(mapping) - 1: # Row building finished del self[RealDictRow] return