]> xenbits.xensource.com Git - libvirt.git/commitdiff
python: Drop explicit version where possible
authorAndrea Bolognani <abologna@redhat.com>
Thu, 15 Mar 2018 16:56:34 +0000 (17:56 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 19 Mar 2018 10:22:02 +0000 (11:22 +0100)
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; we
always use $(PYTHON) explicitly in our build rules anyway.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
docs/apibuild.py
docs/reformat-news.py
src/esx/esx_vi_generator.py
src/hyperv/hyperv_wmi_generator.py

index 51abf83832bb46671b0e5db269218a6ba2854308..17d14a0c55be641daba2ccddb57ca28567ca7787 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
 #
 # This is the API builder, it parses the C sources and build the
 # API formal description in XML.
index fe08bf6d918708cf24cc6d91f165ac6e53f9488d..d8726f1a1c750af556676d81276c985e6e4eacc9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
 
 # reformat-news.py: Reformat the NEWS file properly
 #
index 6ce017d794ab5d3865dc0cc707b77c7a0cdc6422..545f8bdda36eeaa28232e10a6b3685af7bb3454a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
 
 #
 # esx_vi_generator.py: generates most of the SOAP type mapping code
index d548102117fe24a5985e79701a5a1c73381cdbe8..9e7ea4382e84ee6bf316967fc38f64965c154834 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python
 
 #
 # hyperv_wmi_generator.py: generates most of the WMI type mapping code