Fix flake8 warnings like:
gdb/testsuite/gdb.base/pc-not-saved.py:55:18: E711 comparison to None should be 'if cond is None:'
Change-Id: Icb8bbe3ea444125c9d7ae63b7c1461045782b4b2
Approved-By: Tom Tromey <tom@tromey.com>
return None
block = gdb.block_for_pc(pc)
- if block == None:
+ if block is None:
return None
func = block.function
- if func == None:
+ if func is None:
return None
if str(func) != "break_bt_here":
return None
def __init__(self):
super().__init__("TestDisassembler")
self.__info = None
- if current_pc == None:
+ if current_pc is None:
raise gdb.GdbError("no current_pc set")
def __call__(self, info):