From 6dc8e9967bc2bdf014b01a15ff4cadaaef808de0 Mon Sep 17 00:00:00 2001 From: Lucas Ficheux Date: Mon, 23 Dec 2019 12:22:28 +0100 Subject: [PATCH] [cragr] Remove useless fill_env in ListElement The ListElement's fill_env added in 077105e8e2f89049d301cde804062360af3c3ceb was not implemented properly and crashes the module. Moreover, it is useless because it is only important that the DateGuesser object be the same between the Transactions. --- modules/cragr/regions/pages.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/modules/cragr/regions/pages.py b/modules/cragr/regions/pages.py index 11297c03cb..36ebbdaf94 100644 --- a/modules/cragr/regions/pages.py +++ b/modules/cragr/regions/pages.py @@ -691,11 +691,6 @@ class iter_history(ListElement): //tr[contains(@class, "ligne-")]''' next_page = Link('//a[@class="liennavigationcorpspage"][img[@alt="Page suivante"]]', default=None) - def fill_env(self, page, parent=None): - # This *Element's parent has only the dateguesser in its env and we want to - # use the same object, not copy it. - self.env = parent.env - class item(ItemElement): klass = Transaction -- GitLab