From 4891ba0a532c84528d710151f9f89d30fb92aadf Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Tue, 25 Jan 2022 09:06:20 +0100 Subject: [PATCH] [doc]: Spotted errors while working on rstlint. Also ignored some `make suspicious` false positives while assuring true positives were properly seen by rstlint. --- Doc/README.rst | 2 +- Doc/howto/enum.rst | 3 +-- Doc/library/email.errors.rst | 2 +- Doc/library/tk.rst | 2 +- Doc/library/tkinter.colorchooser.rst | 2 +- Doc/library/tkinter.dnd.rst | 2 +- Doc/library/tkinter.messagebox.rst | 2 +- Doc/reference/compound_stmts.rst | 2 +- Doc/tools/susp-ignored.csv | 15 ++++++++++++--- 9 files changed, 20 insertions(+), 12 deletions(-) diff --git a/Doc/README.rst b/Doc/README.rst index 7e8a27b4066d87..c0ac7c4d3d762f 100644 --- a/Doc/README.rst +++ b/Doc/README.rst @@ -91,7 +91,7 @@ Available make targets are: * "pydoc-topics", which builds a Python module containing a dictionary with plain text documentation for the labels defined in - `tools/pyspecific.py` -- pydoc needs these to show topic and keyword help. + ``tools/pyspecific.py`` -- pydoc needs these to show topic and keyword help. * "suspicious", which checks the parsed markup for text that looks like malformed and thus unconverted reST. diff --git a/Doc/howto/enum.rst b/Doc/howto/enum.rst index fa0e2283ebc10c..7b1cf75fa81f08 100644 --- a/Doc/howto/enum.rst +++ b/Doc/howto/enum.rst @@ -23,7 +23,7 @@ selection of values. For example, the days of the week:: ... SATURDAY = 6 ... SUNDAY = 7 - Or perhaps the RGB primary colors:: +Or perhaps the RGB primary colors:: >>> from enum import Enum >>> class Color(Enum): @@ -1398,4 +1398,3 @@ Subclassing EnumType While most enum needs can be met by customizing :class:`Enum` subclasses, either with class decorators or custom functions, :class:`EnumType` can be subclassed to provide a different Enum experience. - diff --git a/Doc/library/email.errors.rst b/Doc/library/email.errors.rst index 7a77640571cb1e..194a98696f437d 100644 --- a/Doc/library/email.errors.rst +++ b/Doc/library/email.errors.rst @@ -114,4 +114,4 @@ All defect classes are subclassed from :class:`email.errors.MessageDefect`. a multiple of 4). The encoded block was kept as-is. * :class:`InvalidDateDefect` -- When decoding an invalid or unparsable date field. - The original value is kept as-is. \ No newline at end of file + The original value is kept as-is. diff --git a/Doc/library/tk.rst b/Doc/library/tk.rst index 0cb8fda4e32ebb..3dc2130539c2cf 100644 --- a/Doc/library/tk.rst +++ b/Doc/library/tk.rst @@ -44,4 +44,4 @@ alternative `GUI frameworks and tools ` clause(s) are used for handling -:exc:`ExceptionGroup`s. The exception type for matching is interpreted as in +:exc:`ExceptionGroup`\ s. The exception type for matching is interpreted as in the case of :keyword:`except`, but in the case of exception groups we can have partial matches when the type matches some of the exceptions in the group. This means that multiple except* clauses can execute, each handling part of diff --git a/Doc/tools/susp-ignored.csv b/Doc/tools/susp-ignored.csv index cbc3ac0bbab34a..43849a409d547b 100644 --- a/Doc/tools/susp-ignored.csv +++ b/Doc/tools/susp-ignored.csv @@ -212,7 +212,10 @@ library/socket,,:can,"return (can_id, can_dlc, data[:can_dlc])" library/socket,,:len,fds.frombytes(cmsg_data[:len(cmsg_data) - (len(cmsg_data) % fds.itemsize)]) library/sqlite3,,:year,"cur.execute(""select * from lang where first_appeared=:year"", {""year"": 1972})" library/sqlite3,,:memory, -library/sqlite3,,:path,"db = sqlite3.connect('file:path/to/database?mode=ro', uri=True)" +library/sqlite3,,:template,"con = sqlite3.connect(""file:template.db?mode=ro"", uri=True)" +library/sqlite3,,:nosuchdb,"con = sqlite3.connect(""file:nosuchdb.db?mode=rw"", uri=True)" +library/sqlite3,,:mem1,"con1 = sqlite3.connect(""file:mem1?mode=memory&cache=shared"", uri=True)" +library/sqlite3,,:mem1,"con2 = sqlite3.connect(""file:mem1?mode=memory&cache=shared"", uri=True)" library/ssl,,:My,"Organizational Unit Name (eg, section) []:My Group" library/ssl,,:My,"Organization Name (eg, company) [Internet Widgits Pty Ltd]:My Organization, Inc." library/ssl,,:myserver,"Common Name (eg, YOUR name) []:myserver.mygroup.myorganization.com" @@ -379,5 +382,11 @@ library/tkinter,,::,"grid [ttk::button .frm.btn -text ""Quit"" -command ""destro library/tkinter,,::,ttk::frame library/tkinter,,::,ttk::button library/tkinter,,::,ttk::widget -whatsnew/changelog,305,::,Lib/email/mime/nonmultipart.py::MIMENonMultipart -whatsnew/changelog,308,::,Lib/ctypes/test/test_functions.py::test_mro +reference/compound_stmts,324,:exc,subclass of :exc:`BaseExceptionGroup`. It is not possible to mix except +reference/compound_stmts,324,`,subclass of :exc:`BaseExceptionGroup`. It is not possible to mix except +reference/compound_stmts,324,:keyword,"and except* in the same :keyword:`try`. :keyword:`break`," +reference/compound_stmts,324,`,"and except* in the same :keyword:`try`. :keyword:`break`," +reference/compound_stmts,324,:keyword,:keyword:`continue` and :keyword:`return` cannot appear in an except* +reference/compound_stmts,324,`,:keyword:`continue` and :keyword:`return` cannot appear in an except* +whatsnew/changelog,178,:CON,": os.path.abspath(“C:CON”) is now fixed to return “\.CON”, not" +whatsnew/changelog,922,::,Lib/email/mime/nonmultipart.py::MIMENonMultipart pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy