From de25e6d05b634de87121ce863f6b3540ab13d87b Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Fri, 16 Apr 2010 16:33:28 +0200 Subject: [PATCH] fix --- weboob/frontends/wetboobs/application.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weboob/frontends/wetboobs/application.py b/weboob/frontends/wetboobs/application.py index d281f1ff..b84ff21c 100644 --- a/weboob/frontends/wetboobs/application.py +++ b/weboob/frontends/wetboobs/application.py @@ -35,7 +35,7 @@ class WetBoobs(ConsoleApplication): print '| ID | Name |' print '+--------------------------------+---------------------------------------------+' count = 0 - for backend, in self.weboob.iter_backends(): + for backend in self.weboob.iter_backends(): for city in backend.iter_city_search(pattern): print u'| %-31s| %-44s|' % (city.city_id, city.name) count += 1 @@ -49,7 +49,7 @@ class WetBoobs(ConsoleApplication): print '| Temperature | Text |' print '+-------------+----------------------------------------------------------------+' found = 0 - for backend, in self.weboob.iter_backends(): + for backend in self.weboob.iter_backends(): try: current = backend.get_current(city) print u'| %-12s| %-63s|' % (u'%d °%s' % (current.temp, current.unit), current.text) @@ -67,7 +67,7 @@ class WetBoobs(ConsoleApplication): print '| Date | Min | Max | Text |' print '+-------------+-------+-------+------------------------------------------------+' found = 0 - for backend, in self.weboob.iter_backends(): + for backend in self.weboob.iter_backends(): try: for f in backend.iter_forecast(city): found = 1