qemu.py: Use iteritems rather than keys()
commit7f33ca7878e3414f779a5d89f04c68c0438c3dc7
authorLukáš Doktor <ldoktor@redhat.com>
Fri, 18 Aug 2017 14:26:06 +0000 (18 16:26 +0200)
committerEduardo Habkost <ehabkost@redhat.com>
Fri, 15 Sep 2017 23:12:00 +0000 (15 20:12 -0300)
tree27e429bbff6ad02958ff1faa19277f8e0bb706da
parent2782fc517d6720dbec24b4dfa08aa4606c72c76d
qemu.py: Use iteritems rather than keys()

Let's avoid creating an in-memory list of keys and query for each value
and use `iteritems` which is an iterator of key-value pairs.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20170818142613.32394-4-ldoktor@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
scripts/qemu.py