summaryrefslogtreecommitdiff
path: root/type_decoder.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2015-12-20 17:49:31 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2015-12-23 20:28:51 +0100
commit0679f5bf9b2334deb75243abb80ef7e0d0472c18 (patch)
tree14fd442e2087dd87a2f936f8979811aea8da394f /type_decoder.c
parent91ae892dcb8637961fc52cc8b528e1f77bec3a53 (diff)
downloadlibsigrokdecode-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.c4
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;
}