commit | 8712fa5333ad348da20034b717dd814219d1ec11 | [log] [tgz] |
---|---|---|
author | Eric Blake <eblake@redhat.com> | Mon Oct 26 16:34:41 2015 -0600 |
committer | Markus Armbruster <armbru@redhat.com> | Mon Nov 02 08:30:26 2015 +0100 |
tree | 880a04ea6167074a7d52df5e1d9a9e0bae50a4ff | |
parent | 1976708321f21ed51d0a374db6b28a6cd1bd5d66 [diff] |
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>