Commit e2dc29ce authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Vincent Pelletier

BusinessTemplate: Prefer using in instead of has_key for lookup in dictionaries

parent e1769b3f
......@@ -3092,7 +3092,7 @@ class CatalogMethodTemplateItem(ObjectTemplateItem):
new_value.remove(method_id)
setattr(catalog, catalog_prop['id'], new_value)
if catalog.filter_dict.has_key(method_id):
if method_id in catalog.filter_dict:
del catalog.filter_dict[method_id]
# uninstall objects
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment