diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2014-07-15 22:49:43 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2014-07-15 22:49:43 +0200 |
commit | 35b380b1156434b73d4a976c68f5ab3604c8510a (patch) | |
tree | 75a60785c37d242eee5886af138dba5ef0f177c1 /decoders/ir_rc5/pd.py | |
parent | 22fc7ace72f3165c98208a8f544156e04a709639 (diff) | |
download | libsigrokdecode-35b380b1156434b73d4a976c68f5ab3604c8510a.tar.gz libsigrokdecode-35b380b1156434b73d4a976c68f5ab3604c8510a.zip |
All PDs: Minor whitespace and consistency fixes.
- No newlines at the end of files.
- No trailing ';' characters.
- Comparison with None: Use 'is None' or 'is not None'.
- Comparison with True/False: Use 'if cond:' or 'if not cond:'.
- Various minor whitespace fixes.
Diffstat (limited to 'decoders/ir_rc5/pd.py')
-rw-r--r-- | decoders/ir_rc5/pd.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/decoders/ir_rc5/pd.py b/decoders/ir_rc5/pd.py index bd99826..4926cb6 100644 --- a/decoders/ir_rc5/pd.py +++ b/decoders/ir_rc5/pd.py @@ -173,7 +173,7 @@ class Decoder(srd.Decoder): bit = 0 if edge == 's' else None self.edges.append(self.samplenum) - if bit != None: + if bit is not None: self.bits.append([self.samplenum, bit]) if len(self.bits) == 14: @@ -181,4 +181,3 @@ class Decoder(srd.Decoder): self.reset_decoder_state() self.old_ir = self.ir - |