summaryrefslogtreecommitdiff
path: root/decoders/uart
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/uart
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/uart')
-rw-r--r--decoders/uart/__init__.py1
-rw-r--r--decoders/uart/pd.py3
2 files changed, 1 insertions, 3 deletions
diff --git a/decoders/uart/__init__.py b/decoders/uart/__init__.py
index f3c0693..d40a7c9 100644
--- a/decoders/uart/__init__.py
+++ b/decoders/uart/__init__.py
@@ -39,4 +39,3 @@ or others.
'''
from .pd import *
-
diff --git a/decoders/uart/pd.py b/decoders/uart/pd.py
index 63ea50d..fef3aa5 100644
--- a/decoders/uart/pd.py
+++ b/decoders/uart/pd.py
@@ -173,7 +173,7 @@ class Decoder(srd.Decoder):
def metadata(self, key, value):
if key == srd.SRD_CONF_SAMPLERATE:
- self.samplerate = value;
+ self.samplerate = value
# The width of one UART bit in number of samples.
self.bit_width = float(self.samplerate) / float(self.options['baudrate'])
@@ -359,4 +359,3 @@ class Decoder(srd.Decoder):
# Save current RX/TX values for the next round.
self.oldbit[rxtx] = signal
-