summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorJulien Palard <julien@palard.fr>2021-09-06 06:50:48 (GMT)
committerGitHub <noreply@github.com>2021-09-06 06:50:48 (GMT)
commit37272f5800ee1e9fcb2da4a1766366519b9b3d94 (patch)
tree5b399e3bd2758ed89d4fef2b7eaeae2288e9f463 /Doc
parent5024dc1c6e08247693aea6ad6e225ec5dcaf0721 (diff)
downloadcpython-37272f5800ee1e9fcb2da4a1766366519b9b3d94.zip
cpython-37272f5800ee1e9fcb2da4a1766366519b9b3d94.tar.gz
cpython-37272f5800ee1e9fcb2da4a1766366519b9b3d94.tar.bz2
bpo-42238: [doc] remove unused, and deduplicate, suspicious ignore rules. (GH-28137)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/tools/extensions/suspicious.py2
-rw-r--r--Doc/tools/susp-ignored.csv30
2 files changed, 11 insertions, 21 deletions
diff --git a/Doc/tools/extensions/suspicious.py b/Doc/tools/extensions/suspicious.py
index 9e814fb..c3de4d7 100644
--- a/Doc/tools/extensions/suspicious.py
+++ b/Doc/tools/extensions/suspicious.py
@@ -118,7 +118,7 @@ class CheckSuspiciousMarkupBuilder(Builder):
self.logger.warning(
'Found %s/%s unused rules: %s' % (
len(unused_rules), len(self.rules),
- ''.join(repr(rule) for rule in unused_rules),
+ '\n'.join(repr(rule) for rule in unused_rules),
)
)
return
diff --git a/Doc/tools/susp-ignored.csv b/Doc/tools/susp-ignored.csv
index f9b76bf..b70e1ff 100644
--- a/Doc/tools/susp-ignored.csv
+++ b/Doc/tools/susp-ignored.csv
@@ -234,12 +234,6 @@ library/tarfile,,:xz,'r:xz'
library/tarfile,,:xz,'w:xz'
library/time,,:mm,
library/time,,:ss,
-library/tkinter,294,::,ttk::frame .frm -padding 10
-library/tkinter,294,::,"grid [ttk::label .frm.lbl -text ""Hello World!""] -column 0 -row 0"
-library/tkinter,294,::,"grid [ttk::button .frm.btn -text ""Quit"" -command ""destroy .""] -column 1 -row 0"
-library/tkinter,304,::,ttk::frame
-library/tkinter,402,::,ttk::button
-library/tkinter,410,::,ttk::widget
library/tracemalloc,,:limit,"for index, stat in enumerate(top_stats[:limit], 1):"
library/turtle,,::,Example::
library/unittest,,:foo,"self.assertEqual(cm.output, ['INFO:foo:first message',"
@@ -376,17 +370,13 @@ library/importlib.metadata,,:main,"EntryPoint(name='wheel', value='wheel.cli:mai
library/importlib.metadata,,`,loading the metadata for packages for the indicated ``context``.
library/re,,`,"`"
using/configure,84,:db2,=db1:db2:...
-library/typing,1004,`,# Type of ``val`` is narrowed to ``str``
-library/typing,1004,`,"# Else, type of ``val`` is narrowed to ``float``."
-library/typing,1004,`,# Type of ``val`` is narrowed to ``List[str]``.
-library/typing,1004,`,# Type of ``val`` remains as ``List[object]``.
-library/tkinter,312,::,ttk::frame .frm -padding 10
-library/tkinter,312,::,"grid [ttk::label .frm.lbl -text ""Hello World!""] -column 0 -row 0"
-library/tkinter,312,::,"grid [ttk::button .frm.btn -text ""Quit"" -command ""destroy .""] -column 1 -row 0"
-library/tkinter,322,::,ttk::frame
-library/tkinter,420,::,ttk::button
-library/tkinter,428,::,ttk::widget
-library/typing,1011,`,# Type of ``val`` is narrowed to ``str``
-library/typing,1011,`,"# Else, type of ``val`` is narrowed to ``float``."
-library/typing,1011,`,# Type of ``val`` is narrowed to ``List[str]``.
-library/typing,1011,`,# Type of ``val`` remains as ``List[object]``.
+library/typing,,`,# Type of ``val`` is narrowed to ``str``
+library/typing,,`,"# Else, type of ``val`` is narrowed to ``float``."
+library/typing,,`,# Type of ``val`` is narrowed to ``List[str]``.
+library/typing,,`,# Type of ``val`` remains as ``List[object]``.
+library/tkinter,,::,ttk::frame .frm -padding 10
+library/tkinter,,::,"grid [ttk::label .frm.lbl -text ""Hello World!""] -column 0 -row 0"
+library/tkinter,,::,"grid [ttk::button .frm.btn -text ""Quit"" -command ""destroy .""] -column 1 -row 0"
+library/tkinter,,::,ttk::frame
+library/tkinter,,::,ttk::button
+library/tkinter,,::,ttk::widget