From: Ryan Jarvis Date: Sat, 19 Jan 2019 07:43:26 +0000 (-0800) Subject: Comparison to None should use "is/is not" instead of "==/!=" X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=44c2ae6e17e24aa419f47151ceb1619e76105030;p=libsigrokdecode.git Comparison to None should use "is/is not" instead of "==/!=" --- diff --git a/decoders/jtag_ejtag/pd.py b/decoders/jtag_ejtag/pd.py index ba5db2a..e327e89 100644 --- a/decoders/jtag_ejtag/pd.py +++ b/decoders/jtag_ejtag/pd.py @@ -247,14 +247,14 @@ class Decoder(srd.Decoder): s += 'Store' if pracc_write else 'Load/Fetch' if pracc_write: - if self.pracc_state.address_out != None: + if self.pracc_state.address_out is not None: s += ', A:' + ' 0x{:08X}'.format(self.pracc_state.address_out) - if self.pracc_state.data_out != None: + if self.pracc_state.data_out is not None: s += ', D:' + ' 0x{:08X}'.format(self.pracc_state.data_out) else: - if self.pracc_state.address_out != None: + if self.pracc_state.address_out is not None: s += ', A:' + ' 0x{:08X}'.format(self.pracc_state.address_out) - if self.pracc_state.data_in != None: + if self.pracc_state.data_in is not None: s += ', D:' + ' 0x{:08X}'.format(self.pracc_state.data_in) self.pracc_state.reset()