aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/debugger
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2019-05-02 18:16:47 +0200
committerhjk <hjk@qt.io>2019-05-10 05:53:39 +0000
commit53117088451d486f6ec57cb4339dbe9253bfbc28 (patch)
tree7f04795dccdf84a241468982853eadcd6b4fd824 /share/qtcreator/debugger
parent4f989d6543de221fc4857a8c11750b5645bac7cc (diff)
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>
Diffstat (limited to 'share/qtcreator/debugger')
-rw-r--r--share/qtcreator/debugger/dumper.py2
-rw-r--r--share/qtcreator/debugger/lldbbridge.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/share/qtcreator/debugger/dumper.py b/share/qtcreator/debugger/dumper.py
index d44c528778..2c66f39a5d 100644
--- a/share/qtcreator/debugger/dumper.py
+++ b/share/qtcreator/debugger/dumper.py
@@ -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'))
diff --git a/share/qtcreator/debugger/lldbbridge.py b/share/qtcreator/debugger/lldbbridge.py
index cf19c1eac8..0c53a1c26f 100644
--- a/share/qtcreator/debugger/lldbbridge.py
+++ b/share/qtcreator/debugger/lldbbridge.py
@@ -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