no more deprecated .has_key(...)

This commit is contained in:
Richard Vézina
2015-12-22 15:39:32 -05:00
parent bb2aa29867
commit 0259ea3d29
8 changed files with 9 additions and 9 deletions
@@ -576,7 +576,7 @@ def bg_graph_model():
meta_graphmodel = dict(group=request.application, color='#ECECEC')
group = meta_graphmodel['group'].replace(' ', '')
if not subgraphs.has_key(group):
if group not in subgraphs:
subgraphs[group] = dict(meta=meta_graphmodel, tables=[])
subgraphs[group]['tables'].append(tablename)