SEDbgMuxApp: fix C0325: unnecessary parens after 'assert' keyword
This commit is contained in:
parent
712c2b79e5
commit
1f57d3dd4a
|
@ -131,7 +131,7 @@ class SEDbgMuxApp(cmd2.Cmd):
|
||||||
self.peer.send(DbgMuxFrame.MsgType.Ping, opts.payload)
|
self.peer.send(DbgMuxFrame.MsgType.Ping, opts.payload)
|
||||||
|
|
||||||
f = self.peer.recv()
|
f = self.peer.recv()
|
||||||
assert(f['MsgType'] == DbgMuxFrame.MsgType.Pong)
|
assert f['MsgType'] == DbgMuxFrame.MsgType.Pong
|
||||||
log.info('Rx Pong with payload \'%s\'', f['Msg'])
|
log.info('Rx Pong with payload \'%s\'', f['Msg'])
|
||||||
|
|
||||||
establish_parser = cmd2.Cmd2ArgumentParser()
|
establish_parser = cmd2.Cmd2ArgumentParser()
|
||||||
|
@ -147,7 +147,7 @@ class SEDbgMuxApp(cmd2.Cmd):
|
||||||
self.peer.send(DbgMuxFrame.MsgType.ConnEstablish, dict(DPRef=opts.DPRef))
|
self.peer.send(DbgMuxFrame.MsgType.ConnEstablish, dict(DPRef=opts.DPRef))
|
||||||
|
|
||||||
f = self.peer.recv()
|
f = self.peer.recv()
|
||||||
assert(f['MsgType'] == DbgMuxFrame.MsgType.ConnEstablished)
|
assert f['MsgType'] == DbgMuxFrame.MsgType.ConnEstablished
|
||||||
if f['Msg']['ConnRef'] == 0xffff:
|
if f['Msg']['ConnRef'] == 0xffff:
|
||||||
log.warning("Connection failed: unknown DPRef=0x%04x?", opts.DPRef)
|
log.warning("Connection failed: unknown DPRef=0x%04x?", opts.DPRef)
|
||||||
self.peer.send(DbgMuxFrame.MsgType.Ack)
|
self.peer.send(DbgMuxFrame.MsgType.Ack)
|
||||||
|
@ -192,7 +192,7 @@ class SEDbgMuxApp(cmd2.Cmd):
|
||||||
|
|
||||||
if rsp[:7] == '*EMRDY:':
|
if rsp[:7] == '*EMRDY:':
|
||||||
continue
|
continue
|
||||||
assert(rsp == exp)
|
assert rsp == exp
|
||||||
break
|
break
|
||||||
|
|
||||||
ap = argparse.ArgumentParser(prog='sedbgmux', description=SEDbgMuxApp.DESC,
|
ap = argparse.ArgumentParser(prog='sedbgmux', description=SEDbgMuxApp.DESC,
|
||||||
|
|
Loading…
Reference in New Issue