lacentrale: Fix deprecated has_key
This commit is contained in:
parent
13b58b9fd7
commit
140195790e
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class LaCentraleBrowser(Browser):
|
||||||
return self.page.iter_products(criteria)
|
return self.page.iter_products(criteria)
|
||||||
|
|
||||||
def _buildUrl(self, product, request, 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 '&' + request.format(product._criteria.get(criteria))
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue