From: Uwe Hermann Date: Wed, 10 Sep 2014 07:26:11 +0000 (+0200) Subject: Various PDs: Whitespace, cosmetics. X-Git-Tag: libsigrokdecode-0.4.0~172 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cb9a5046bed65e38b28c21afcb8945b19d4e8012;p=libsigrokdecode.git Various PDs: Whitespace, cosmetics. --- diff --git a/decoders/spdif/__init__.py b/decoders/spdif/__init__.py index e53a435..0e8d059 100644 --- a/decoders/spdif/__init__.py +++ b/decoders/spdif/__init__.py @@ -24,4 +24,3 @@ transmitting audio data. ''' from .pd import * - diff --git a/decoders/spdif/pd.py b/decoders/spdif/pd.py index 9646386..bd75cff 100644 --- a/decoders/spdif/pd.py +++ b/decoders/spdif/pd.py @@ -226,7 +226,7 @@ class Decoder(srd.Decoder): data = pins[0] # Initialize self.olddata with the first sample value. - if self.olddata == None: + if self.olddata is None: self.olddata = data continue diff --git a/decoders/tca6408a/pd.py b/decoders/tca6408a/pd.py index 7579a82..d53d8fc 100644 --- a/decoders/tca6408a/pd.py +++ b/decoders/tca6408a/pd.py @@ -128,4 +128,3 @@ class Decoder(srd.Decoder): handle_reg(databyte) elif cmd == 'STOP': self.state = 'IDLE' -