]> sigrok.org Git - libsigrokdecode.git/blobdiff - type_decoder.c
Drop obsolete support for annotation tuples (only support lists).
[libsigrokdecode.git] / type_decoder.c
index 89b5ca1119c439d5caecd1279c2272dae907f413..ae6b95fb883beb224555a36fd047a4f4340a9a7c 100644 (file)
@@ -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;
        }