diff options
| author | Lukáš Doktor | 2017-08-18 16:26:07 +0200 |
|---|---|---|
| committer | Eduardo Habkost | 2017-09-16 01:12:00 +0200 |
| commit | 41f714b190ffff7fefb3ad090bc02d089e4c7bda (patch) | |
| tree | 149fe5b23045e44e6562a3a0464b0de57387dd04 /scripts/qmp | |
| parent | qemu.py: Use iteritems rather than keys() (diff) | |
| download | qemu-41f714b190ffff7fefb3ad090bc02d089e4c7bda.tar.gz qemu-41f714b190ffff7fefb3ad090bc02d089e4c7bda.tar.xz qemu-41f714b190ffff7fefb3ad090bc02d089e4c7bda.zip | |
qemu.py: Simplify QMP key-conversion
The QMP key conversion consist of '_'s to be replaced with '-'s, which
can easily be done by a single `str.replace` method which is faster and
does not require `string` module import.
Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20170818142613.32394-5-ldoktor@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'scripts/qmp')
0 files changed, 0 insertions, 0 deletions
