lacentrale: Fix deprecated has_key

This commit is contained in:
Laurent Bachelier 2014-10-06 14:03:28 +02:00
commit 140195790e

View file

@ -45,7 +45,7 @@ class LaCentraleBrowser(Browser):
return self.page.iter_products(criteria)
def _buildUrl(self, product, request, criteria):
if product._criteria.has_key(criteria):
if criteria in product._criteria:
return '&' + request.format(product._criteria.get(criteria))
return ''