From 0679f5bf9b2334deb75243abb80ef7e0d0472c18 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sun, 20 Dec 2015 17:49:31 +0100 Subject: [PATCH] Drop obsolete support for annotation tuples (only support lists). None of the PDs use this. --- type_decoder.c | 4 ++-- 1 file 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; } -- 2.30.2