Re: [PATCH 2/2] python: Drop explicit version where possible

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

 



On Thu, Mar 15, 2018 at 06:00:38PM +0100, Andrea Bolognani wrote:
> Some of our scripts are known to work both with Python 2 and
> Python 3, so for them we shouldn't be forcing any specific
> version of the interpreter when they're called directly.
> 
> Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
> ---
>  docs/reformat-news.py       | 2 +-
>  src/esx/esx_vi_generator.py | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/docs/reformat-news.py b/docs/reformat-news.py
> index fe08bf6d91..d8726f1a1c 100755
> --- a/docs/reformat-news.py
> +++ b/docs/reformat-news.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python2
> +#!/usr/bin/env python
>  
>  # reformat-news.py: Reformat the NEWS file properly
>  #
> diff --git a/src/esx/esx_vi_generator.py b/src/esx/esx_vi_generator.py
> index 6ce017d794..545f8bdda3 100755
> --- a/src/esx/esx_vi_generator.py
> +++ b/src/esx/esx_vi_generator.py
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python2
> +#!/usr/bin/env python
>  
>  #
>  # esx_vi_generator.py: generates most of the SOAP type mapping code

Reviewed-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>

Presumably we always invoke them with $(PYTHON) from make anyway


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux