mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
qapi: Use "not COND" instead of "!COND" for generated documentation
Generated documentation uses operators "and", "or", and "!". Change the latter to "not". Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210831123809.1107782-9-armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
a7987799d1
commit
d0830ee443
2 changed files with 2 additions and 2 deletions
|
@ -233,7 +233,7 @@ def cgen_ifcond(ifcond: Optional[Union[str, Dict[str, Any]]]) -> str:
|
|||
|
||||
def docgen_ifcond(ifcond: Optional[Union[str, Dict[str, Any]]]) -> str:
|
||||
# TODO Doc generated for conditions needs polish
|
||||
return gen_ifcond(ifcond, '%s', '!%s', ' and ', ' or ')
|
||||
return gen_ifcond(ifcond, '%s', 'not %s', ' and ', ' or ')
|
||||
|
||||
|
||||
def gen_if(cond: str) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue