From 7e2494f63888764d4a45df454976356443d5b2ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 31 Jul 2011 17:23:49 +0200 Subject: [PATCH] Fix py3warn --- forecast.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/forecast.py b/forecast.py index e13d612b6e..88f26534e2 100644 --- a/forecast.py +++ b/forecast.py @@ -453,7 +453,8 @@ class ForecastComplete(Wizard): else: products = None - for (_, product), qty in pbl.iteritems(): + for key, qty in pbl.iteritems(): + _, product = key if products and product not in products: continue if -qty <= 0: