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/parallel | |
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/parallel')
-rw-r--r-- | decoders/parallel/__init__.py | 1 | ||||
-rw-r--r-- | decoders/parallel/pd.py | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/decoders/parallel/__init__.py b/decoders/parallel/__init__.py index cc1f3d1..ee8b444 100644 --- a/decoders/parallel/__init__.py +++ b/decoders/parallel/__init__.py @@ -33,4 +33,3 @@ For an 8-bit bus you should use D0-D7, for a 16-bit bus use D0-D15 and so on. ''' from .pd import * - diff --git a/decoders/parallel/pd.py b/decoders/parallel/pd.py index 0b512c8..a695ca6 100644 --- a/decoders/parallel/pd.py +++ b/decoders/parallel/pd.py @@ -122,7 +122,7 @@ class Decoder(srd.Decoder): self.items.append(item) self.itemcount += 1 - if self.first == True: + if self.first: # Save the start sample and item for later (no output yet). self.ss_item = self.samplenum self.first = False @@ -184,4 +184,3 @@ class Decoder(srd.Decoder): self.handle_bits(pins[1:]) else: self.find_clk_edge(pins[0], pins[1:]) - |