Re: [PATCH] tools/kvm_stat: Add Python 3 support to kvm_stat

From: Stefan Hajnoczi
Date: Mon Sep 18 2017 - 05:32:50 EST


On Sun, Sep 17, 2017 at 05:49:51PM +0000, Jeremy Cline wrote:
> Make kvm_stat support Python 3 by changing the use of "print" to a
> function rather than a statement and switching from "iteritems" (removed
> in Python 3) to "items".
>
> With this change, kvm_stat is usable with Python 2.6 and greater.
>
> Signed-off-by: Jeremy Cline <jeremy@xxxxxxxxxx>
> ---
> tools/kvm/kvm_stat/kvm_stat | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@xxxxxxxxxx>