On Mon, Mar 12, 2018 at 03:55:01PM -0300, Eduardo Habkost wrote: > items() is less efficient on Python 2.x, but makes the code work > on both Python 2 and Python 3. > > Cc: Lukáš Doktor <ldok...@redhat.com> > Cc: Philippe Mathieu-Daudé <f4...@amsat.org> > Cc: Cleber Rosa <cr...@redhat.com> > Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> > --- > scripts/qemu.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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:
Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|