From 013a3aceb5b94710ee686cfa448458b1f170d78c Mon Sep 17 00:00:00 2001 From: John Snow Date: Wed, 19 May 2021 14:39:49 -0400 Subject: qapi/parser: Remove superfluous list comprehension A generator suffices (and quiets a pylint warning). Signed-off-by: John Snow Message-Id: <20210519183951.3946870-14-jsnow@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- scripts/qapi/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/qapi/parser.py b/scripts/qapi/parser.py index 419e36c870..b0f18c0d17 100644 --- a/scripts/qapi/parser.py +++ b/scripts/qapi/parser.py @@ -176,7 +176,7 @@ class QAPISchemaParser: def check_list_str(name: str, value: object) -> List[str]: if (not isinstance(value, list) or - any([not isinstance(elt, str) for elt in value])): + any(not isinstance(elt, str) for elt in value)): raise QAPISemError( info, "pragma %s must be a list of strings" % name) -- cgit v1.2.3