]> sigrok.org Git - libsigrokdecode.git/commitdiff
Various PDs: Whitespace, cosmetics.
authorUwe Hermann <redacted>
Wed, 10 Sep 2014 07:26:11 +0000 (09:26 +0200)
committerUwe Hermann <redacted>
Wed, 10 Sep 2014 15:27:02 +0000 (17:27 +0200)
decoders/spdif/__init__.py
decoders/spdif/pd.py
decoders/tca6408a/pd.py

index e53a4357a03c4c0eb43f3f71673c820558b232e2..0e8d0591a00d1ead4f2bbe2f3cf5a36289ad5ddb 100644 (file)
@@ -24,4 +24,3 @@ transmitting audio data.
 '''
 
 from .pd import *
 '''
 
 from .pd import *
-
index 964638655b4c12fcdb05235a21673cb99cc1d4eb..bd75cffd0d8917869843ffa9fc2bc675a6eef1e5 100644 (file)
@@ -226,7 +226,7 @@ class Decoder(srd.Decoder):
             data = pins[0]
 
             # Initialize self.olddata with the first sample value.
             data = pins[0]
 
             # Initialize self.olddata with the first sample value.
-            if self.olddata == None:
+            if self.olddata is None:
                 self.olddata = data
                 continue
 
                 self.olddata = data
                 continue
 
index 7579a821e1379b95f17a199d59180086c354de14..d53d8fc90ed4a83bd79591d09e36aacacafd1b2f 100644 (file)
@@ -128,4 +128,3 @@ class Decoder(srd.Decoder):
                 handle_reg(databyte)
             elif cmd == 'STOP':
                 self.state = 'IDLE'
                 handle_reg(databyte)
             elif cmd == 'STOP':
                 self.state = 'IDLE'
-