From: Jonathan Wakely Date: Thu, 4 Jan 2024 15:01:20 +0000 (+0000) Subject: contrib: Remove C-style comments from Python files X-Git-Tag: basepoints/gcc-15~3182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29abd09a744970bf2b93d078bad9946899ef2b05;p=thirdparty%2Fgcc.git contrib: Remove C-style comments from Python files 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. --- diff --git a/contrib/analyze_brprob.py b/contrib/analyze_brprob.py index a482b5a18d2e..ca42fa6a6c26 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 0ec55419e758..b8af7b9e6a57 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 5da7a60f4b55..623c82284e26 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 55e49a09191a..6b946a5bc361 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 9f5851c271f8..f1a120fa8d35 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 eb14c56cc647..6ae2a9040472 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 86a2105b573d..8cca9f439a58 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 282f526a6c98..87bec4e00f56 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 2f94816af563..9d8e44e429de 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 f61c521d1c23..03ec38c2cea8 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 dd73a5b08324..92639ba626fd 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 5b8c0beeace6..57247f34b926 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 8c0ef8bb1df5..4c201943b5c7 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 9bed7902e26a..393d36217990 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 9a55266ab843..09a9d1d01650 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 fb5ef50ba4ca..9f9365ca0a23 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 7684c086638b..2d4ed4eed7bc 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 aa8d8b2cfd24..6628ea5c8e61 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