From 35b380b1156434b73d4a976c68f5ab3604c8510a Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 15 Jul 2014 22:49:43 +0200 Subject: 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. --- decoders/sdcard_spi/__init__.py | 1 - decoders/sdcard_spi/pd.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'decoders/sdcard_spi') diff --git a/decoders/sdcard_spi/__init__.py b/decoders/sdcard_spi/__init__.py index 293b654..60f6d98 100644 --- a/decoders/sdcard_spi/__init__.py +++ b/decoders/sdcard_spi/__init__.py @@ -67,4 +67,3 @@ SPI mode properties (differences to SD mode): ''' from .pd import * - diff --git a/decoders/sdcard_spi/pd.py b/decoders/sdcard_spi/pd.py index 6bd0be7..cbf59d7 100644 --- a/decoders/sdcard_spi/pd.py +++ b/decoders/sdcard_spi/pd.py @@ -228,7 +228,7 @@ class Decoder(srd.Decoder): if len(self.read_buf) < 16 + 4: return self.cmd_es = self.es - self.read_buf = self.read_buf[4:] ### TODO: Document or redo. + self.read_buf = self.read_buf[4:] # TODO: Document or redo. self.putx([9, ['CSD: %s' % self.read_buf]]) # TODO: Decode all bits. self.read_buf = [] @@ -439,4 +439,3 @@ class Decoder(srd.Decoder): handle_response(miso) self.state = 'IDLE' - -- cgit v1.2.3-70-g09d2