summaryrefslogtreecommitdiffstats
path: root/scripts/qapi-commands.py
diff options
context:
space:
mode:
authorEric Blake2015-10-26 23:34:41 +0100
committerMarkus Armbruster2015-11-02 08:30:26 +0100
commit8712fa5333ad348da20034b717dd814219d1ec11 (patch)
tree880a04ea6167074a7d52df5e1d9a9e0bae50a4ff /scripts/qapi-commands.py
parenttests/qapi-schema: Test for reserved names, empty struct (diff)
downloadqemu-8712fa5333ad348da20034b717dd814219d1ec11.tar.gz
qemu-8712fa5333ad348da20034b717dd814219d1ec11.tar.xz
qemu-8712fa5333ad348da20034b717dd814219d1ec11.zip
qapi: More idiomatic string operations
Rather than slicing the end of a string, we can use python's endswith(). And rather than creating a set of characters, we can search for a character within a string. Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <1445898903-12082-3-git-send-email-eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'scripts/qapi-commands.py')
0 files changed, 0 insertions, 0 deletions