From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id 626963858D33 for ; Thu, 4 Jan 2024 15:04:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 626963858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 626963858D33 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704380651; cv=none; b=a5O44IVfiiTh/rst1Py3tPCzL7yWMKm6D9tQDrJ9DH2cKslMvTFb/IIbC5YhZHeWTYI5WNovb4J5kF9vV2LqRvoX/rbn9t7qv0C6ahRO7xsjiZXwyi0y4nqvvSrNuKIUBjaYn1iaMWNoAVXGQsFaRMUswOU24rNWt6nabSGcYkQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704380651; c=relaxed/simple; bh=bBMNtzJ7GkALu1/R8oDxC/jpJ59TYPbBrFxvhzfipMs=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=ZB0+NHy5bVe35UInzwvETKIoGHKAZY9QakrYBW6WTrY0rI+8UcJDqfOx/IR2JLXK1MuGRG+EtaIeuuRyil1JU7X29sAiYGgVdabbbnBmoJGfJtQLBEhQU6BzwyEyy8RdqofqARW/IGr8ZJdDhkAyjnh8JjTKxU8fkquR2Rpu7pw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704380649; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=S/0H73hyPXGAgtKqELAaADeVwj2VeHPDBlkVpm41+Mo=; b=ddcxl4zUXNhQSuJCZDuu8KdbqWsLQqANITahF+/JzlLkLIC2VKdAAJd5kM6GMh7aU5d6+j J5Oft+6TmxbTp2LwJwuJjRomzDvNYrphzdD0YzIzwb6dX+r/ouAUV3hKh9OWkYBG0IGtdL PP7XkGjgssU6KoM28j8+i4lPsWzjqkI= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-524-2A9ECSrjNJuMh56-RVK4_A-1; Thu, 04 Jan 2024 10:04:07 -0500 X-MC-Unique: 2A9ECSrjNJuMh56-RVK4_A-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D9C963806729 for ; Thu, 4 Jan 2024 15:04:06 +0000 (UTC) Received: from localhost (unknown [10.42.28.185]) by smtp.corp.redhat.com (Postfix) with ESMTP id A28ED1121313 for ; Thu, 4 Jan 2024 15:04:06 +0000 (UTC) From: Jonathan Wakely To: gcc-patches@gcc.gnu.org Subject: [PATCH] contrib: Remove C-style comments from Python files Date: Thu, 4 Jan 2024 15:02:51 +0000 Message-ID: <20240104150405.3055716-1-jwakely@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-13.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,KAM_SHORT,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: I plan to push this as obvious. There are also 32 other files that match "^# .*licenses/>\. *\*/$" in the repo, mostly .exp files in the testsuite. I'm not changing them, only the Python files under contrib. -- >8 -- These Python scripts have "*/" at the end of the license header comment blocks, presumably copy&pasted from C files. contrib/ChangeLog: * analyze_brprob.py: Remove stray text at end of comment. * analyze_brprob_spec.py: Likewise. * check-params-in-docs.py: Likewise. * check_GNU_style.py: Likewise. * check_GNU_style_lib.py: Likewise. * filter-clang-warnings.py: Likewise. * gcc-changelog/git_check_commit.py: Likewise. * gcc-changelog/git_commit.py: Likewise. * gcc-changelog/git_email.py: Likewise. * gcc-changelog/git_repository.py: Likewise. * gcc-changelog/git_update_version.py: Likewise. * gcc-changelog/test_email.py: Likewise. * gen_autofdo_event.py: Likewise. * mark_spam.py: Likewise. * unicode/gen-box-drawing-chars.py: Likewise. * unicode/gen-combining-chars.py: Likewise. * unicode/gen-printable-chars.py: Likewise. * unicode/gen_wcwidth.py: Likewise. --- contrib/analyze_brprob.py | 2 +- contrib/analyze_brprob_spec.py | 2 +- contrib/check-params-in-docs.py | 2 +- contrib/check_GNU_style.py | 2 +- contrib/check_GNU_style_lib.py | 2 +- contrib/filter-clang-warnings.py | 2 +- contrib/gcc-changelog/git_check_commit.py | 2 +- contrib/gcc-changelog/git_commit.py | 2 +- contrib/gcc-changelog/git_email.py | 2 +- contrib/gcc-changelog/git_repository.py | 2 +- contrib/gcc-changelog/git_update_version.py | 2 +- contrib/gcc-changelog/test_email.py | 2 +- contrib/gen_autofdo_event.py | 2 +- contrib/mark_spam.py | 2 +- contrib/unicode/gen-box-drawing-chars.py | 2 +- contrib/unicode/gen-combining-chars.py | 2 +- contrib/unicode/gen-printable-chars.py | 2 +- contrib/unicode/gen_wcwidth.py | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/contrib/analyze_brprob.py b/contrib/analyze_brprob.py index a482b5a18d2..ca42fa6a6c2 100755 --- a/contrib/analyze_brprob.py +++ b/contrib/analyze_brprob.py @@ -18,7 +18,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . # # # diff --git a/contrib/analyze_brprob_spec.py b/contrib/analyze_brprob_spec.py index 0ec55419e75..b8af7b9e6a5 100755 --- a/contrib/analyze_brprob_spec.py +++ b/contrib/analyze_brprob_spec.py @@ -16,7 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . import sys import os diff --git a/contrib/check-params-in-docs.py b/contrib/check-params-in-docs.py index 5da7a60f4b5..623c82284e2 100755 --- a/contrib/check-params-in-docs.py +++ b/contrib/check-params-in-docs.py @@ -19,7 +19,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . # # # diff --git a/contrib/check_GNU_style.py b/contrib/check_GNU_style.py index 55e49a09191..6b946a5bc36 100755 --- a/contrib/check_GNU_style.py +++ b/contrib/check_GNU_style.py @@ -20,7 +20,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . import argparse import sys diff --git a/contrib/check_GNU_style_lib.py b/contrib/check_GNU_style_lib.py index 9f5851c271f..f1a120fa8d3 100755 --- a/contrib/check_GNU_style_lib.py +++ b/contrib/check_GNU_style_lib.py @@ -20,7 +20,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . # # The script requires python packages, which can be installed via pip3 # like this: diff --git a/contrib/filter-clang-warnings.py b/contrib/filter-clang-warnings.py index eb14c56cc64..6ae2a904047 100755 --- a/contrib/filter-clang-warnings.py +++ b/contrib/filter-clang-warnings.py @@ -18,7 +18,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . # # # diff --git a/contrib/gcc-changelog/git_check_commit.py b/contrib/gcc-changelog/git_check_commit.py index 86a2105b573..8cca9f439a5 100755 --- a/contrib/gcc-changelog/git_check_commit.py +++ b/contrib/gcc-changelog/git_check_commit.py @@ -16,7 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . import argparse diff --git a/contrib/gcc-changelog/git_commit.py b/contrib/gcc-changelog/git_commit.py index 282f526a6c9..87bec4e00f5 100755 --- a/contrib/gcc-changelog/git_commit.py +++ b/contrib/gcc-changelog/git_commit.py @@ -16,7 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . import difflib import os diff --git a/contrib/gcc-changelog/git_email.py b/contrib/gcc-changelog/git_email.py index 2f94816af56..9d8e44e429d 100755 --- a/contrib/gcc-changelog/git_email.py +++ b/contrib/gcc-changelog/git_email.py @@ -16,7 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . import os import re diff --git a/contrib/gcc-changelog/git_repository.py b/contrib/gcc-changelog/git_repository.py index f61c521d1c2..03ec38c2cea 100755 --- a/contrib/gcc-changelog/git_repository.py +++ b/contrib/gcc-changelog/git_repository.py @@ -16,7 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . from datetime import datetime diff --git a/contrib/gcc-changelog/git_update_version.py b/contrib/gcc-changelog/git_update_version.py index dd73a5b0832..92639ba626f 100755 --- a/contrib/gcc-changelog/git_update_version.py +++ b/contrib/gcc-changelog/git_update_version.py @@ -16,7 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . import argparse import datetime diff --git a/contrib/gcc-changelog/test_email.py b/contrib/gcc-changelog/test_email.py index 5b8c0beeace..57247f34b92 100755 --- a/contrib/gcc-changelog/test_email.py +++ b/contrib/gcc-changelog/test_email.py @@ -16,7 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . import os import tempfile diff --git a/contrib/gen_autofdo_event.py b/contrib/gen_autofdo_event.py index 8c0ef8bb1df..4c201943b5c 100755 --- a/contrib/gen_autofdo_event.py +++ b/contrib/gen_autofdo_event.py @@ -15,7 +15,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . # Run it with perf record -b -e EVENT program ... # The Linux Kernel needs to support the PMU of the current CPU, and diff --git a/contrib/mark_spam.py b/contrib/mark_spam.py index 9bed7902e26..393d3621799 100755 --- a/contrib/mark_spam.py +++ b/contrib/mark_spam.py @@ -18,7 +18,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . # # # diff --git a/contrib/unicode/gen-box-drawing-chars.py b/contrib/unicode/gen-box-drawing-chars.py index 9a55266ab84..09a9d1d0165 100755 --- a/contrib/unicode/gen-box-drawing-chars.py +++ b/contrib/unicode/gen-box-drawing-chars.py @@ -16,7 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . import unicodedata diff --git a/contrib/unicode/gen-combining-chars.py b/contrib/unicode/gen-combining-chars.py index fb5ef50ba4c..9f9365ca0a2 100755 --- a/contrib/unicode/gen-combining-chars.py +++ b/contrib/unicode/gen-combining-chars.py @@ -16,7 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . from pprint import pprint import unicodedata diff --git a/contrib/unicode/gen-printable-chars.py b/contrib/unicode/gen-printable-chars.py index 7684c086638..2d4ed4eed7b 100755 --- a/contrib/unicode/gen-printable-chars.py +++ b/contrib/unicode/gen-printable-chars.py @@ -16,7 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . from pprint import pprint import unicodedata diff --git a/contrib/unicode/gen_wcwidth.py b/contrib/unicode/gen_wcwidth.py index aa8d8b2cfd2..6628ea5c8e6 100755 --- a/contrib/unicode/gen_wcwidth.py +++ b/contrib/unicode/gen_wcwidth.py @@ -16,7 +16,7 @@ # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see -# . */ +# . import sys import os -- 2.43.0