aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/source.py
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2021-03-23 10:40:16 +0100
committerMarkus Armbruster <armbru@redhat.com>2021-03-23 22:31:05 +0100
commitb86df374784897c58b965939c9913c2a6c590426 (patch)
treec5fff8cd91fad0cd850795b99f9e1ca5531e237f /scripts/qapi/source.py
parentef8b3829f6d194c856d7db34e14117e8ed90a396 (diff)
downloadqemu-b86df374784897c58b965939c9913c2a6c590426.zip
qemu-b86df374784897c58b965939c9913c2a6c590426.tar.gz
qemu-b86df374784897c58b965939c9913c2a6c590426.tar.bz2
qapi: Rename pragma *-whitelist to *-exceptions
Rename pragma returns-whitelist to command-returns-exceptions, and name-case-whitelist to member-name-case-exceptions. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20210323094025.3569441-20-armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'scripts/qapi/source.py')
-rw-r--r--scripts/qapi/source.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/qapi/source.py b/scripts/qapi/source.py
index d7a79a9..d8f9ec3 100644
--- a/scripts/qapi/source.py
+++ b/scripts/qapi/source.py
@@ -21,10 +21,10 @@ class QAPISchemaPragma:
def __init__(self) -> None:
# Are documentation comments required?
self.doc_required = False
- # Whitelist of commands allowed to return a non-dictionary
- self.returns_whitelist: List[str] = []
- # Whitelist of entities allowed to violate case conventions
- self.name_case_whitelist: List[str] = []
+ # Commands allowed to return a non-dictionary
+ self.command_returns_exceptions: List[str] = []
+ # Types whose member names may violate case conventions
+ self.member_name_exceptions: List[str] = []
class QAPISourceInfo: