From: Uwe Hermann Date: Tue, 3 Jan 2012 19:26:29 +0000 (+0100) Subject: srd: Remove decode() docstrings. X-Git-Tag: libsigrokdecode-0.1.0~218 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=71071bcfd36bed13b110931a6cc8189a1493dd2a;p=libsigrokdecode.git srd: Remove decode() docstrings. This info is in the decoder's metadata, where the frontends can get it from programmatically anyway. --- diff --git a/decoders/i2c.py b/decoders/i2c.py index e082763..cf16d3a 100644 --- a/decoders/i2c.py +++ b/decoders/i2c.py @@ -323,8 +323,6 @@ class Decoder(sigrok.Decoder): super(Decoder, self).put(timeoffset, duration, output_id, data) def decode(self, timeoffset, duration, data): - """I2C protocol decoder""" - self.timeoffset = timeoffset self.duration = duration print("++", timeoffset, duration, len(data)) diff --git a/decoders/nunchuk.py b/decoders/nunchuk.py index cc1252c..d330747 100644 --- a/decoders/nunchuk.py +++ b/decoders/nunchuk.py @@ -110,8 +110,6 @@ class Decoder(sigrok.Decoder): pass def decode(self, timeoffset, duration, data): - """Nintendo Wii Nunchuk decoder""" - out = [] o = {} diff --git a/decoders/transitioncounter.py b/decoders/transitioncounter.py index 70f1f1a..846e9d9 100644 --- a/decoders/transitioncounter.py +++ b/decoders/transitioncounter.py @@ -68,9 +68,6 @@ class Decoder(sigrok.Decoder): pass def decode(self, timeoffset, duration, data): - """Counts the low->high and high->low transitions in the specified - channel(s) of the signal.""" - # We should accept a list of samples and iterate... for sample in sampleiter(data, self.unitsize): diff --git a/decoders/uart.py b/decoders/uart.py index 7a63d77..66deb5e 100644 --- a/decoders/uart.py +++ b/decoders/uart.py @@ -395,8 +395,6 @@ class Decoder(sigrok.Decoder): return o def decode(self, timeoffset, duration, data): - """UART protocol decoder""" - out = [] for sample in sampleiter(data, self.unitsize):