From 87b9f0b87b748fb8db87e2ff81d74bb76ec4769b Mon Sep 17 00:00:00 2001 From: Jason Lowe-Power Date: Fri, 10 Feb 2017 10:00:18 -0500 Subject: misc: Update #!env calls for python to explicit version In some newer Linux distributions, env python default to Python 3.0. This patch explicitly uses "python2" instead of just "python" for all scripts that use #! Reported-by: Sanchayan Maity Signed-off-by: Jason Lowe-Power --- util/style/__init__.py | 2 +- util/style/repo.py | 2 +- util/style/sort_includes.py | 2 +- util/style/style.py | 2 +- util/style/verifiers.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'util/style') diff --git a/util/style/__init__.py b/util/style/__init__.py index e7c83da10..1bc471108 100644 --- a/util/style/__init__.py +++ b/util/style/__init__.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # # Copyright (c) 2016 ARM Limited # All rights reserved diff --git a/util/style/repo.py b/util/style/repo.py index adcbdc95f..7e3b444c6 100644 --- a/util/style/repo.py +++ b/util/style/repo.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # # Copyright (c) 2016 ARM Limited # All rights reserved diff --git a/util/style/sort_includes.py b/util/style/sort_includes.py index a35b08468..d1a25ee6b 100644 --- a/util/style/sort_includes.py +++ b/util/style/sort_includes.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # # Copyright (c) 2014-2015 ARM Limited # All rights reserved diff --git a/util/style/style.py b/util/style/style.py index 9f3f0d0f0..317caa395 100644 --- a/util/style/style.py +++ b/util/style/style.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python2 # Copyright (c) 2014, 2016 ARM Limited # All rights reserved # diff --git a/util/style/verifiers.py b/util/style/verifiers.py index 1be453601..89247dc4f 100644 --- a/util/style/verifiers.py +++ b/util/style/verifiers.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # # Copyright (c) 2014, 2016 ARM Limited # All rights reserved -- cgit v1.2.3