From: Alistair Francis Date: Sat, 4 Jan 2020 18:03:17 +0000 (-0800) Subject: Convert all Python scripts to Python 3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31ea914e35e1c3d7eb5af0a512aa72bc85482ca8;p=thirdparty%2Fglibc.git Convert all Python scripts to Python 3 Convert all of the Python scripts in tree to explicity use Python 3. I have not explicity tested all of the scripts. Makefiles generally explicitly use $(PYTHON) so the scripts should already support Python3. --- diff --git a/benchtests/scripts/bench.py b/benchtests/scripts/bench.py index aeec5ccd239..a54ec6f7e34 100755 --- a/benchtests/scripts/bench.py +++ b/benchtests/scripts/bench.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Copyright (C) 2014-2020 Free Software Foundation, Inc. # This file is part of the GNU C Library. # diff --git a/benchtests/scripts/compare_bench.py b/benchtests/scripts/compare_bench.py index a215ebc9bd9..f174161ed31 100755 --- a/benchtests/scripts/compare_bench.py +++ b/benchtests/scripts/compare_bench.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Copyright (C) 2015-2020 Free Software Foundation, Inc. # This file is part of the GNU C Library. # diff --git a/benchtests/scripts/compare_strings.py b/benchtests/scripts/compare_strings.py index 2b2edbf10db..06f7c6e1c83 100755 --- a/benchtests/scripts/compare_strings.py +++ b/benchtests/scripts/compare_strings.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Copyright (C) 2017-2020 Free Software Foundation, Inc. # This file is part of the GNU C Library. # diff --git a/benchtests/scripts/import_bench.py b/benchtests/scripts/import_bench.py index 08681aafdc2..2264da00370 100644 --- a/benchtests/scripts/import_bench.py +++ b/benchtests/scripts/import_bench.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Copyright (C) 2015-2020 Free Software Foundation, Inc. # This file is part of the GNU C Library. # diff --git a/benchtests/scripts/validate_benchout.py b/benchtests/scripts/validate_benchout.py index 715218aff80..6b4877a67b8 100755 --- a/benchtests/scripts/validate_benchout.py +++ b/benchtests/scripts/validate_benchout.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Copyright (C) 2014-2020 Free Software Foundation, Inc. # This file is part of the GNU C Library. # diff --git a/conform/glibcconform.py b/conform/glibcconform.py index 60757455741..1440dedc832 100644 --- a/conform/glibcconform.py +++ b/conform/glibcconform.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Shared code for glibc conformance tests. # Copyright (C) 2018-2020 Free Software Foundation, Inc. # This file is part of the GNU C Library. diff --git a/conform/linknamespace.py b/conform/linknamespace.py index 87cd17b1ce6..1d27e4cfbae 100644 --- a/conform/linknamespace.py +++ b/conform/linknamespace.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Check that use of symbols declared in a given header does not result # in any symbols being brought in that are not reserved with external # linkage for the given standard. diff --git a/conform/list-header-symbols.py b/conform/list-header-symbols.py index e43c12ec40c..bfa463a3034 100644 --- a/conform/list-header-symbols.py +++ b/conform/list-header-symbols.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Print a list of symbols exported by some headers that would # otherwise be in the user's namespace. # Copyright (C) 2018-2020 Free Software Foundation, Inc. diff --git a/math/gen-libm-test.py b/math/gen-libm-test.py index ec263397d89..0142c0f332b 100755 --- a/math/gen-libm-test.py +++ b/math/gen-libm-test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Generate tests for libm functions. # Copyright (C) 2018-2020 Free Software Foundation, Inc. # This file is part of the GNU C Library. diff --git a/math/gen-tgmath-tests.py b/math/gen-tgmath-tests.py index ef207dd852a..c225b64db18 100755 --- a/math/gen-tgmath-tests.py +++ b/math/gen-tgmath-tests.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Generate tests for macros. # Copyright (C) 2017-2020 Free Software Foundation, Inc. # This file is part of the GNU C Library.