summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Jarvis <ryan@shopboxretail.com>2019-01-18 23:43:26 -0800
committerUwe Hermann <uwe@hermann-uwe.de>2019-01-29 23:43:49 +0100
commit44c2ae6e17e24aa419f47151ceb1619e76105030 (patch)
treef191bc02d92cace888f336383ef9aacd146df4bf
parentb3f6033022006c8f4ee88a70155f3571bee1a2ca (diff)
downloadlibsigrokdecode-44c2ae6e17e24aa419f47151ceb1619e76105030.tar.gz
libsigrokdecode-44c2ae6e17e24aa419f47151ceb1619e76105030.zip
Comparison to None should use "is/is not" instead of "==/!="
-rw-r--r--decoders/jtag_ejtag/pd.py8
1 files changed, 4 insertions, 4 deletions
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()