mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
f17539c80d
commit
33aa3267ba
4 changed files with 12 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue