From bef55c5c82a057c35be03799013b959bc8f85464 Mon Sep 17 00:00:00 2001 From: Marcin Juszkiewicz Date: Thu, 27 Feb 2020 12:08:11 +0100 Subject: [PATCH] do not use unversioned Python binary We said 'bye' to Python 2 already. So let us use Python 3 for all scripts. Unversioned Python binary should be avoided as it may be Python2 or Python3 (depends on distribution). Implements: blueprint drop-py2-support Change-Id: Ifd7912a3debf3ee4ddd8f3e1a4c5870848d4d688 --- kolla/cmd/build.py | 2 +- tools/validate-all-file.py | 2 +- tools/validate-yaml.py | 2 +- tools/version-check.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py index 3ccc4475a0..67a350415b 100755 --- a/kolla/cmd/build.py +++ b/kolla/cmd/build.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tools/validate-all-file.py b/tools/validate-all-file.py index e44641291e..c04fb4000a 100755 --- a/tools/validate-all-file.py +++ b/tools/validate-all-file.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tools/validate-yaml.py b/tools/validate-yaml.py index 6df84ff07d..400a3821b2 100755 --- a/tools/validate-yaml.py +++ b/tools/validate-yaml.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python3 # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff --git a/tools/version-check.py b/tools/version-check.py index 7f4204439e..522ef1a313 100755 --- a/tools/version-check.py +++ b/tools/version-check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License.