* [PATCH] contrib: Remove C-style comments from Python files
@ 2024-01-04 15:02 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2024-01-04 15:02 UTC (permalink / raw)
To: gcc-patches
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
#
#
#
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
#
#
#
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
#
# 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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
#
#
#
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
# 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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
#
#
#
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
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
-# <http://www.gnu.org/licenses/>. */
+# <http://www.gnu.org/licenses/>.
import sys
import os
--
2.43.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-04 15:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-04 15:02 [PATCH] contrib: Remove C-style comments from Python files Jonathan Wakely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).