python scripts: Use "not in" operator to test membership

As per suggestion from Pyls, this changes
  if not needle in haystack:
to
  if needle not in haystack:

Change-Id: I4a482604e13e61ecee9e02935479632419710ff7
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Robert Loehning <robert.loehning@qt.io>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Alessandro Portale
2019-05-02 18:16:47 +02:00
committed by hjk
parent 4f989d6543
commit 5311708845
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -1078,7 +1078,7 @@ class DumperBase:
reslist = []
for item in res.get('variables', {}):
if not 'iname' in item:
if 'iname' not in item:
item['iname'] = '.' + item.get('name')
reslist.append(self.variablesToMi(item, 'local'))
+1 -1
View File
@@ -2216,7 +2216,7 @@ class SyntheticChildrenProvider(SummaryProvider):
SummaryProvider.update(self)
self.synthetic_children = []
if not 'children' in self.summary:
if 'children' not in self.summary:
return
dereference_child = None