From patchwork Fri Jan 31 17:03:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alistair Francis X-Patchwork-Id: 37628 Received: (qmail 36601 invoked by alias); 31 Jan 2020 17:10:06 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 36592 invoked by uid 89); 31 Jan 2020 17:10:05 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT autolearn=ham version=3.3.1 spammy=HX-Languages-Length:4352, conform, HContent-Transfer-Encoding:8bit X-HELO: esa5.hgst.iphmx.com DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1580490604; x=1612026604; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=+9NAr4qesBMGfyglkAe3zHA0OpiXPi5f07oxX/cnf68=; b=NHNaM4VDrsVKPbHUJuUSuCxvAhr0J7DNqOdbHcsV7E8yFwYdN4+LPM/Z fIExlDbC0/kLrJmngMRNZldrED6cC1aNggYsT0/zpkUwqXec1VTxad2zi oYQoqdxFwVEsdxXN4qDkrwdiX5Z6infQ3JOcPKyeXBdJx4nOhhPbvHuE2 yUpMG9hZ82WIcUeMlmq4EhyBUfId/JQq7xnswdoQBZEX6ZOv+Aw8HZVyf zdvdkG9gkispLHgb3JfVcD4uYc7VVtQJ22lCm/aoej2nak/dq5vlIJ+XJ a+Igcn+WPPlAuN68zwX8Py+9kV5nUdZF5BdDXmKtjJMsiH27jKV8GejH0 w==; IronPort-SDR: k3WsvzvV+ftzJfz6lIiPN0+AarnFxk0dtRRtVsSdLbTkFdFRnqJOG8ZFJv9lznRvF8qwqpnLRS TdVbSNNQsJk+KlJMymmTRsekHdahWp85xRcIXw8KVr4PSAQ2ZARMzthMpHNZy0pT1dzl7lNBgj wKcshZcmqFqh2hhdS2rQjwyaYEe1qLdYGXtBqArDgWCyNrH3UCV13FoscFCCcCK5xJnFhNwD5o xsBwGChP5pvYUbiDorrrrcSO/e67+SIqHOyK72UkvKsEyAZjbIaQohgYMATr2Za00oQGOVEKrG AL0= IronPort-SDR: PYW9XV/CGey2k2nrcKVMGJOqvymOaKXvd6USA+tB1p5U78PvLlMJwCuZbamRgCkn//Dk/6mDOL C5cOVUHcugq3TUkuM8/WID7fTwUmBGw1B4vH14mOlSULXSUQh+TY5EiDzPLIzn55OHLPfCQnGR RFmKHJgYHupCG9WFwa5onadVts9Y4s3JtQGgO+fnpKS2ojNRRISVk46+PsTfftnn2jp9XgU+28 GyRtFAJJqU9DbM5pimhFtlwa+LjuiAK9l+j2CnyskpjvGPBEsFFOpI+glujiKZKEhxsXFkjej8 kkMIgA1WZZF0zNk4f7/9DFb4 IronPort-SDR: RpH2nR4mk4nmQYRGPO8RkGP3agix5x0Juz+x8JueIuvq6oRwRsBp8/P5fIxF7+2fjGGRF/javd fP9wVEPXsrBuKthAhCFrTgHerGFiyqGz2CvqVEEPfpcsnPeGaBNCuO+rzTCDzVx6gxT94nHKAA wJsq6cvtHhrgiLYMr8RGymgpexFNmgJTTLsWuwVMDUrr1Fj2/sTasf0f5PqebQBaGEeY23eJEk jO+54mY1o/XYY8yT8sY90TeVWtp+IxSbCiGkhCFrK9plq83ekUdp/6rEn78N/+1X5OhNA0VSBX 4w8= WDCIronportException: Internal From: Alistair Francis To: libc-alpha@sourceware.org Cc: alistair23@gmail.com, Alistair Francis Subject: [PATCH] Convert all Python scripts to Python 3 Date: Fri, 31 Jan 2020 09:03:22 -0800 Message-Id: <20200131170322.25332-1-alistair.francis@wdc.com> MIME-Version: 1.0 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. --- benchtests/scripts/bench.py | 2 +- benchtests/scripts/compare_bench.py | 2 +- benchtests/scripts/compare_strings.py | 2 +- benchtests/scripts/import_bench.py | 2 +- benchtests/scripts/validate_benchout.py | 2 +- conform/glibcconform.py | 2 +- conform/linknamespace.py | 2 +- conform/list-header-symbols.py | 2 +- math/gen-libm-test.py | 2 +- math/gen-tgmath-tests.py | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/benchtests/scripts/bench.py b/benchtests/scripts/bench.py index aeec5ccd23..a54ec6f7e3 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 a215ebc9bd..f174161ed3 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 2b2edbf10d..06f7c6e1c8 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 08681aafdc..2264da0037 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 715218aff8..6b4877a67b 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 6075745574..1440dedc83 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 87cd17b1ce..1d27e4cfba 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 e43c12ec40..bfa463a303 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 ec263397d8..0142c0f332 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 ef207dd852..c225b64db1 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.