diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2015-12-20 17:49:31 +0100 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2015-12-23 20:28:51 +0100 |
commit | 0679f5bf9b2334deb75243abb80ef7e0d0472c18 (patch) | |
tree | 14fd442e2087dd87a2f936f8979811aea8da394f /type_decoder.c | |
parent | 91ae892dcb8637961fc52cc8b528e1f77bec3a53 (diff) | |
download | libsigrokdecode-0679f5bf9b2334deb75243abb80ef7e0d0472c18.tar.gz libsigrokdecode-0679f5bf9b2334deb75243abb80ef7e0d0472c18.zip |
Drop obsolete support for annotation tuples (only support lists).
None of the PDs use this.
Diffstat (limited to 'type_decoder.c')
-rw-r--r-- | type_decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/type_decoder.c b/type_decoder.c index 89b5ca1..ae6b95f 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -50,9 +50,9 @@ static int convert_annotation(struct srd_decoder_inst *di, PyObject *obj, char **ann_text; /* Should be a list of [annotation class, [string, ...]]. */ - if (!PyList_Check(obj) && !PyTuple_Check(obj)) { + if (!PyList_Check(obj)) { srd_err("Protocol decoder %s submitted an annotation that" - " is not a list or tuple", di->decoder->name); + " is not a list", di->decoder->name); return SRD_ERR_PYTHON; } |