[SRU][Bionic][Patch 2/2] tools/kvm_stat: switch to python3

Juerg Haefliger juerg.haefliger at canonical.com
Tue Jan 15 10:17:54 UTC 2019


From: Stefan Raspl <stefan.raspl at de.ibm.com>

BugLink: https://bugs.launchpad.net/bugs/1798776

The current shebang does not work in environments that only support python3
and have no python2 installed. Plus there does not seem to be a way to
support python2 and python3 at the same time. Since all known python3 issues
were fixed, and as python3 is the way to go, let's switch over.
Note that the code is still python2 compliant, so folks in bad use can
simply revert the shebang.

Suggested-by: Christian Ehrhardt <christian.ehrhardt at canonical.com>
Signed-off-by: Stefan Raspl <raspl at linux.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
(cherry picked from commit 09f70c3b70e7d9e209a820b54dda42502fa40711)
Signed-off-by: Juerg Haefliger <juergh at canonical.com>
---
 tools/kvm/kvm_stat/kvm_stat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/kvm/kvm_stat/kvm_stat b/tools/kvm/kvm_stat/kvm_stat
index e10b90a8917a..aa4d404184a8 100755
--- a/tools/kvm/kvm_stat/kvm_stat
+++ b/tools/kvm/kvm_stat/kvm_stat
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 #
 # top-like utility for displaying kvm statistics
 #
-- 
2.19.1




More information about the kernel-team mailing list