Commit 77d399f9 authored by Ayush Tiwari's avatar Ayush Tiwari Committed by Ayush Tiwari

[prep-commit]BusinessTemplate: Prefer using in instead of has_key for lookup in dictionaries

parent ccf5b2ff
......@@ -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.keys():
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