Remove backend for do() calls

This commit is contained in:
Florent 2014-10-09 11:04:09 +02:00
commit 628c63f899
33 changed files with 112 additions and 113 deletions

View file

@ -95,7 +95,7 @@ class Comparoob(ReplApplication):
what product to compare.
"""
products = []
for backend, product in self.do('search_products', pattern):
for product in self.do('search_products', pattern):
double = False
for prod in products:
if product.name == prod.name:
@ -124,7 +124,7 @@ class Comparoob(ReplApplication):
self.change_path([u'prices'])
self.start_format()
products = []
for backend, price in self.do('iter_prices', product):
for price in self.do('iter_prices', product):
products.append(price)
for price in sorted(products, key=self._get_price):
self.cached_format(price)