Re: [PATCH] tools/kvm_stat: switch to python3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 24/10/18 21:41, Stefan Raspl wrote:
> From: Stefan Raspl <stefan.raspl@xxxxxxxxxx>
> 
> 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.

Sure, but why not /usr/bin/python3?

Paolo

> Suggested-by: Christian Ehrhardt <christian.ehrhardt@xxxxxxxxxxxxx>
> Signed-off-by: Stefan Raspl <raspl@xxxxxxxxxxxxx>
> ---
>  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 195ba486640f..2ed395b817cb 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
>  #
> 




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux