diff options
| author | Eric Blake <eblake@redhat.com> | 2015-10-26 16:34:41 -0600 |
|---|---|---|
| committer | Markus Armbruster <armbru@redhat.com> | 2015-11-02 08:30:26 +0100 |
| commit | 8712fa5333ad348da20034b717dd814219d1ec11 (patch) | |
| tree | 880a04ea6167074a7d52df5e1d9a9e0bae50a4ff /scripts/qapi-commands.py | |
| parent | 1976708321f21ed51d0a374db6b28a6cd1bd5d66 (diff) | |
| download | focaccia-qemu-8712fa5333ad348da20034b717dd814219d1ec11.tar.gz focaccia-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