]> git.baikalelectronics.ru Git - kernel.git/commit
tools/kvm_stat: Fix python3 syntax
authorCole Robinson <crobinso@redhat.com>
Fri, 23 Mar 2018 22:07:16 +0000 (18:07 -0400)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 28 Mar 2018 20:47:06 +0000 (22:47 +0200)
commit2c0193cfddf1d36159e73766fdbc6535d7c5e386
tree69b7b9df2d4da5c4128912964509373a5bf290ba
parent896d596896b2f01e9f92676366d824d844294913
tools/kvm_stat: Fix python3 syntax

$ python3 tools/kvm/kvm_stat/kvm_stat
  File "tools/kvm/kvm_stat/kvm_stat", line 1137
    def sortkey((_k, v)):
                ^
SyntaxError: invalid syntax

Fix it in a way that's compatible with python2 and python3

Signed-off-by: Cole Robinson <crobinso@redhat.com>
Tested-by: Stefan Raspl <stefan.raspl@linux.vnet.ibm.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
tools/kvm/kvm_stat/kvm_stat