summaryrefslogtreecommitdiff
path: root/decoders/dcf77
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2014-07-15 22:49:43 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2014-07-15 22:49:43 +0200
commit35b380b1156434b73d4a976c68f5ab3604c8510a (patch)
tree75a60785c37d242eee5886af138dba5ef0f177c1 /decoders/dcf77
parent22fc7ace72f3165c98208a8f544156e04a709639 (diff)
downloadlibsigrokdecode-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/dcf77')
-rw-r--r--decoders/dcf77/__init__.py1
-rw-r--r--decoders/dcf77/pd.py3
2 files changed, 1 insertions, 3 deletions
diff --git a/decoders/dcf77/__init__.py b/decoders/dcf77/__init__.py
index 04805c2..1a29462 100644
--- a/decoders/dcf77/__init__.py
+++ b/decoders/dcf77/__init__.py
@@ -27,4 +27,3 @@ http://en.wikipedia.org/wiki/DCF77
'''
from .pd import *
-
diff --git a/decoders/dcf77/pd.py b/decoders/dcf77/pd.py
index 14d8637..adee403 100644
--- a/decoders/dcf77/pd.py
+++ b/decoders/dcf77/pd.py
@@ -242,7 +242,7 @@ class Decoder(srd.Decoder):
# Even parity over date bits (36-58): DCF77 bit 58.
parity = self.datebits.count(1)
s = 'OK' if ((parity % 2) == 0) else 'INVALID!'
- self.putx([16, ['Date parity: %s' % s, 'DP: %s' %s]])
+ self.putx([16, ['Date parity: %s' % s, 'DP: %s' % s]])
self.datebits = []
else:
raise Exception('Invalid DCF77 bit: %d' % c)
@@ -314,4 +314,3 @@ class Decoder(srd.Decoder):
self.state = 'WAIT FOR RISING EDGE'
self.oldval = val
-