]> git.baikalelectronics.ru Git - kernel.git/commit
tools/kvm_stat: use a more pythonic way to iterate over dictionaries
authorMarc Hartmayer <mhartmay@linux.vnet.ibm.com>
Tue, 9 Jan 2018 12:27:03 +0000 (13:27 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 24 Feb 2018 00:43:39 +0000 (01:43 +0100)
commit36eeba20c3f52b6ad41c12973e2d29fb2d5be072
treeb31f033103bf210987ae2a392b44096ed35f5022
parent123d3df6ba288f8ee1fec046ea8a3bfa7ab4d4e9
tools/kvm_stat: use a more pythonic way to iterate over dictionaries

If it's clear that the values of a dictionary will be used then use
the '.items()' method.

Signed-off-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Tested-by: Stefan Raspl <raspl@linux.vnet.ibm.com>
[Include fix for logging mode by Stefan Raspl]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/kvm/kvm_stat/kvm_stat