diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2018-03-12 15:55:01 -0300 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2018-03-12 19:10:16 -0300 |
commit | fb2e1cc6c45fd69082a4793a662778c7a747c452 (patch) | |
tree | f0f616f9f379165516cf63f0eeaf5967bd8e46cc /scripts | |
parent | 44d815e83a1e898dec90f3093d09c015975178c6 (diff) |
qemu.py: Use items() instead of iteritems()
items() is less efficient on Python 2.x, but makes the code work
on both Python 2 and Python 3.
Cc: Lukáš Doktor <ldoktor@redhat.com>
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: Cleber Rosa <crosa@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Message-Id: <20180312185503.5746-2-ehabkost@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/qemu.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/qemu.py b/scripts/qemu.py index 305a946562..08a3e9af5a 100644 --- a/scripts/qemu.py +++ b/scripts/qemu.py @@ -277,7 +277,7 @@ class QEMUMachine(object): def qmp(self, cmd, conv_keys=True, **args): '''Invoke a QMP command and return the response dict''' qmp_args = dict() - for key, value in args.iteritems(): + for key, value in args.items(): if conv_keys: qmp_args[key.replace('_', '-')] = value else: |