From 8b4b941e06fc88ae21023f551586725944f9ccf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mois=C3=A9s=20L=C3=B3pez?= Date: Tue, 27 Mar 2018 18:33:37 -0600 Subject: [PATCH] =?UTF-8?q?[FIX]=C2=A0runbot:=20dictionary=20don't=20have?= =?UTF-8?q?=20iteritems=20attibute?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- runbot/models/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/build.py b/runbot/models/build.py index 40861efd..0f48ecb3 100644 --- a/runbot/models/build.py +++ b/runbot/models/build.py @@ -197,7 +197,7 @@ class runbot_build(models.Model): # exception. We ignore this branch as there is no common ref between us. continue if common_refs: - b = sorted(common_refs.iteritems(), key=operator.itemgetter(1), reverse=True)[0][0] + b = sorted(common_refs.items(), key=operator.itemgetter(1), reverse=True)[0][0] return target_id, b, 'fuzzy' # 5. last-resort value