From: Uwe Hermann Date: Sun, 12 Oct 2014 17:02:00 +0000 (+0200) Subject: swd: Drop unnecessary debug code. X-Git-Tag: libsigrokdecode-0.4.0~160 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=dcfb60a1658243c3130774fe00645e7fedb23211;p=libsigrokdecode.git swd: Drop unnecessary debug code. --- diff --git a/decoders/swd/pd.py b/decoders/swd/pd.py index 4e68f2d..f2abf1f 100644 --- a/decoders/swd/pd.py +++ b/decoders/swd/pd.py @@ -19,7 +19,7 @@ ## import sigrokdecode as srd -import re, traceback +import re ''' OUTPUT_PYTHON format: @@ -143,13 +143,6 @@ class Decoder(srd.Decoder): self.putp(ptype, (self.addr, self.data, self.ack)) def decode(self, ss, es, data): - try: - return self._decode(ss, es, data) - except: - traceback.print_exc() - raise - - def _decode(self, ss, es, data): for (self.samplenum, (clk, dio)) in data: if clk == self.oldclk: continue # Not a clock edge.