From: Uwe Hermann Date: Sun, 20 Dec 2015 16:49:31 +0000 (+0100) Subject: Drop obsolete support for annotation tuples (only support lists). X-Git-Tag: libsigrokdecode-0.4.0~9 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=0679f5bf9b2334deb75243abb80ef7e0d0472c18;p=libsigrokdecode.git Drop obsolete support for annotation tuples (only support lists). None of the PDs use this. --- 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; }