Fix flake8 warnings like this one:
gdb/testsuite/gdb.python/py-send-packet.py:68:12: E713 test for membership should be 'not in'
Change-Id: I2b4cc1eeb63ee2fceb8c4264e7d6ce2d22824688
Approved-By: Tom Tromey <tom@tromey.com>
if stack_adjust is None:
raise gdb.GdbError("invalid stack_adjust")
- if not stop_at_level in [1, 3, 5]:
+ if stop_at_level not in [1, 3, 5]:
raise gdb.GdbError("invalid stop_at_level")
sp_desc = pending_frame.architecture().registers().find("sp")
# find them, mark the ones we do find.
for thr in threads_xml:
id = thr.get("id")
- if not id in all_threads:
+ if id not in all_threads:
raise "found unexpected thread in remote thread list"
else:
all_threads[id] = True