Skip to content

Commit 37272f5

Browse files
authored
bpo-42238: [doc] remove unused, and deduplicate, suspicious ignore rules. (GH-28137)
1 parent 5024dc1 commit 37272f5

File tree

2 files changed

+11
-21
lines changed

2 files changed

+11
-21
lines changed

Doc/tools/extensions/suspicious.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def finish(self):
118118
self.logger.warning(
119119
'Found %s/%s unused rules: %s' % (
120120
len(unused_rules), len(self.rules),
121-
''.join(repr(rule) for rule in unused_rules),
121+
'\n'.join(repr(rule) for rule in unused_rules),
122122
)
123123
)
124124
return

Doc/tools/susp-ignored.csv

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,6 @@ library/tarfile,,:xz,'r:xz'
234234
library/tarfile,,:xz,'w:xz'
235235
library/time,,:mm,
236236
library/time,,:ss,
237-
library/tkinter,294,::,ttk::frame .frm -padding 10
238-
library/tkinter,294,::,"grid [ttk::label .frm.lbl -text ""Hello World!""] -column 0 -row 0"
239-
library/tkinter,294,::,"grid [ttk::button .frm.btn -text ""Quit"" -command ""destroy .""] -column 1 -row 0"
240-
library/tkinter,304,::,ttk::frame
241-
library/tkinter,402,::,ttk::button
242-
library/tkinter,410,::,ttk::widget
243237
library/tracemalloc,,:limit,"for index, stat in enumerate(top_stats[:limit], 1):"
244238
library/turtle,,::,Example::
245239
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
376370
library/importlib.metadata,,`,loading the metadata for packages for the indicated ``context``.
377371
library/re,,`,"`"
378372
using/configure,84,:db2,=db1:db2:...
379-
library/typing,1004,`,# Type of ``val`` is narrowed to ``str``
380-
library/typing,1004,`,"# Else, type of ``val`` is narrowed to ``float``."
381-
library/typing,1004,`,# Type of ``val`` is narrowed to ``List[str]``.
382-
library/typing,1004,`,# Type of ``val`` remains as ``List[object]``.
383-
library/tkinter,312,::,ttk::frame .frm -padding 10
384-
library/tkinter,312,::,"grid [ttk::label .frm.lbl -text ""Hello World!""] -column 0 -row 0"
385-
library/tkinter,312,::,"grid [ttk::button .frm.btn -text ""Quit"" -command ""destroy .""] -column 1 -row 0"
386-
library/tkinter,322,::,ttk::frame
387-
library/tkinter,420,::,ttk::button
388-
library/tkinter,428,::,ttk::widget
389-
library/typing,1011,`,# Type of ``val`` is narrowed to ``str``
390-
library/typing,1011,`,"# Else, type of ``val`` is narrowed to ``float``."
391-
library/typing,1011,`,# Type of ``val`` is narrowed to ``List[str]``.
392-
library/typing,1011,`,# Type of ``val`` remains as ``List[object]``.
373+
library/typing,,`,# Type of ``val`` is narrowed to ``str``
374+
library/typing,,`,"# Else, type of ``val`` is narrowed to ``float``."
375+
library/typing,,`,# Type of ``val`` is narrowed to ``List[str]``.
376+
library/typing,,`,# Type of ``val`` remains as ``List[object]``.
377+
library/tkinter,,::,ttk::frame .frm -padding 10
378+
library/tkinter,,::,"grid [ttk::label .frm.lbl -text ""Hello World!""] -column 0 -row 0"
379+
library/tkinter,,::,"grid [ttk::button .frm.btn -text ""Quit"" -command ""destroy .""] -column 1 -row 0"
380+
library/tkinter,,::,ttk::frame
381+
library/tkinter,,::,ttk::button
382+
library/tkinter,,::,ttk::widget

0 commit comments

Comments
 (0)