diff options
author | Marc-André Lureau | 2021-08-04 10:30:58 +0200 |
---|---|---|
committer | Markus Armbruster | 2021-08-26 13:53:56 +0200 |
commit | 33aa3267bacc5a7af363c0ffa5f1bdabba54b989 (patch) | |
tree | d2a5887804da5d4c5e7a69b4de79688449c900c2 /tests | |
parent | qapi: wrap Sequence[str] in an object (diff) | |
download | qemu-33aa3267bacc5a7af363c0ffa5f1bdabba54b989.tar.gz qemu-33aa3267bacc5a7af363c0ffa5f1bdabba54b989.tar.xz qemu-33aa3267bacc5a7af363c0ffa5f1bdabba54b989.zip |
qapi: add QAPISchemaIfCond.is_present()
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20210804083105.97531-4-marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/qapi-schema/test-qapi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qapi-schema/test-qapi.py b/tests/qapi-schema/test-qapi.py index 7907b4ac3a..c92be2d086 100755 --- a/tests/qapi-schema/test-qapi.py +++ b/tests/qapi-schema/test-qapi.py @@ -94,7 +94,7 @@ class QAPISchemaTestVisitor(QAPISchemaVisitor): @staticmethod def _print_if(ifcond, indent=4): - if ifcond.ifcond: + if ifcond.is_present(): print('%sif %s' % (' ' * indent, ifcond.ifcond)) @classmethod |