From da9bcbd9f45b0153465c55ec726a0d76f6d7f01e Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Mon, 10 Mar 2014 12:23:38 +0100 Subject: Probes, optional probes and annotations now take a tuple. Annotation entries also consist of a tuple, not a list. --- decoders/parallel/pd.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'decoders/parallel/pd.py') diff --git a/decoders/parallel/pd.py b/decoders/parallel/pd.py index 43c5d54..cae269f 100644 --- a/decoders/parallel/pd.py +++ b/decoders/parallel/pd.py @@ -59,7 +59,7 @@ def probe_list(num_probes): for i in range(num_probes): d = {'id': 'd%d' % i, 'name': 'D%d' % i, 'desc': 'Data line %d' % i} l.append(d) - return l + return tuple(l) class Decoder(srd.Decoder): api_version = 1 @@ -79,10 +79,10 @@ class Decoder(srd.Decoder): {'id': 'endianness', 'desc': 'Endianness of the data', 'default': 'little', 'values': ('little', 'big')}, ) - annotations = [ - ['items', 'Items'], - ['words', 'Words'], - ] + annotations = ( + ('items', 'Items'), + ('words', 'Words'), + ) def __init__(self): self.oldclk = None -- cgit v1.2.3-70-g09d2