diff options
| author | Markus Armbruster <armbru@redhat.com> | 2019-09-27 15:46:26 +0200 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2019-09-28 17:17:19 +0200 |
| commit | 88112488cf228df8b7588c8aa38e16ecd0dff48e (patch) | |
| tree | b6d437c3706dc42ce94ee0b71be7284e980b1b6f /scripts/qapi/events.py | |
| parent | 67fa64ce0ef92943a25de0f0760f8cfc10c2bbf3 (diff) | |
| download | focaccia-qemu-88112488cf228df8b7588c8aa38e16ecd0dff48e.tar.gz focaccia-qemu-88112488cf228df8b7588c8aa38e16ecd0dff48e.zip | |
qapi: Make check_type()'s array case a bit more obvious
check_type() checks the array's contents, then peels off the array and falls through to the "not array" code without resetting allow_array and allow_dict to False. Works because the peeled value is a string, and allow_array and allow_dict aren't used then. Tidy up anyway: recurse instead, defaulting allow_array and allow_dict to False. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20190927134639.4284-14-armbru@redhat.com>
Diffstat (limited to 'scripts/qapi/events.py')
0 files changed, 0 insertions, 0 deletions