Skip to content
Commit 9cc5fbbb authored by Jeremy Cline's avatar Jeremy Cline Committed by Paolo Bonzini
Browse files

tools/kvm_stat: Add Python 3 support to kvm_stat



Make kvm_stat support Python 3 by changing the use of "print" to a
function rather than a statement, switching from "iteritems" and
"iterkeys" (removed in Python 3) to "items" and "keys" respectively,
and decoding bytes to strings when dealing with text.

With this change, kvm_stat is usable with Python 2.6 and greater.

Signed-off-by: default avatarJeremy Cline <jeremy@jcline.org>
Signed-off-by: default avatarRadim Krčmář <rkrcmar@redhat.com>
parent 0f107682
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment