lkml.org 
[lkml]   [2017]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] tools/kvm_stat: Add Python 3 support to kvm_stat
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@jcline.org>
> ---
> tools/kvm/kvm_stat/kvm_stat | 13 +++++++------
> 1 file changed, 7 insertions(+), 6 deletions(-)

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>

\
 
 \ /
  Last update: 2017-09-18 11:33    [W:0.033 / U:34.652 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site