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/mx25lxx05d | |
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/mx25lxx05d')
-rw-r--r-- | decoders/mx25lxx05d/__init__.py | 1 | ||||
-rw-r--r-- | decoders/mx25lxx05d/pd.py | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/decoders/mx25lxx05d/__init__.py b/decoders/mx25lxx05d/__init__.py index 71d7b3c..85d3434 100644 --- a/decoders/mx25lxx05d/__init__.py +++ b/decoders/mx25lxx05d/__init__.py @@ -29,4 +29,3 @@ http://www.macronix.com/QuickPlace/hq/PageLibrary4825740B00298A3B.nsf/h_Index/3F ''' from .pd import * - diff --git a/decoders/mx25lxx05d/pd.py b/decoders/mx25lxx05d/pd.py index a6c72d8..2222c37 100644 --- a/decoders/mx25lxx05d/pd.py +++ b/decoders/mx25lxx05d/pd.py @@ -360,7 +360,7 @@ class Decoder(srd.Decoder): self.ss, self.es = ss, es # If we encountered a known chip command, enter the resp. state. - if self.state == None: + if self.state is None: self.state = mosi self.cmdstate = 1 @@ -372,4 +372,3 @@ class Decoder(srd.Decoder): else: self.putx([24, ['Unknown command: 0x%02x' % mosi]]) self.state = None - |