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