From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Thu, 19 Feb 2026 11:45:30 +0000 (+0000) Subject: Remove unused :platform: in module's docs (GH-144988) X-Git-Tag: v3.15.0a7~229 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20caf1c08440684b618d2166022ae82b2db3b696;p=thirdparty%2FPython%2Fcpython.git Remove unused :platform: in module's docs (GH-144988) It has not been outputted since Sphinx 1.1. --- diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst index 84efc6654e87..2dc638b3d401 100644 --- a/Doc/library/curses.rst +++ b/Doc/library/curses.rst @@ -4,7 +4,6 @@ .. module:: curses :synopsis: An interface to the curses library, providing portable terminal handling. - :platform: Unix .. sectionauthor:: Moshe Zadka .. sectionauthor:: Eric Raymond @@ -25,6 +24,8 @@ Linux and the BSD variants of Unix. .. include:: ../includes/optional-module.rst +.. availability:: Unix. + .. note:: Whenever the documentation mentions a *character* it can be specified diff --git a/Doc/library/dbm.rst b/Doc/library/dbm.rst index 2481d77f5fbf..646981e8692c 100644 --- a/Doc/library/dbm.rst +++ b/Doc/library/dbm.rst @@ -161,7 +161,6 @@ The individual submodules are described in the following sections. ---------------------------------------------- .. module:: dbm.sqlite3 - :platform: All :synopsis: SQLite backend for dbm .. versionadded:: 3.13 @@ -224,7 +223,6 @@ or any other SQLite browser, including the SQLite CLI. ---------------------------------------- .. module:: dbm.gnu - :platform: Unix :synopsis: GNU database manager **Source code:** :source:`Lib/dbm/gnu.py` @@ -242,6 +240,8 @@ functionality like crash tolerance. .. include:: ../includes/wasm-mobile-notavail.rst +.. availability:: Unix. + .. exception:: error Raised on :mod:`!dbm.gnu`-specific errors, such as I/O errors. :exc:`KeyError` is @@ -347,7 +347,6 @@ functionality like crash tolerance. ----------------------------------------- .. module:: dbm.ndbm - :platform: Unix :synopsis: The New Database Manager **Source code:** :source:`Lib/dbm/ndbm.py` @@ -373,6 +372,8 @@ This module can be used with the "classic" NDBM interface or the .. include:: ../includes/wasm-mobile-notavail.rst +.. availability:: Unix. + .. exception:: error Raised on :mod:`!dbm.ndbm`-specific errors, such as I/O errors. :exc:`KeyError` is raised diff --git a/Doc/library/dialog.rst b/Doc/library/dialog.rst index 6fee23e94218..5d522556235a 100644 --- a/Doc/library/dialog.rst +++ b/Doc/library/dialog.rst @@ -5,7 +5,6 @@ Tkinter Dialogs ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. module:: tkinter.simpledialog - :platform: Tk :synopsis: Simple dialog windows **Source code:** :source:`Lib/tkinter/simpledialog.py` @@ -43,7 +42,6 @@ functions for creating simple modal dialogs to get a value from the user. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. module:: tkinter.filedialog - :platform: Tk :synopsis: Dialog classes for file selection **Source code:** :source:`Lib/tkinter/filedialog.py` @@ -208,7 +206,6 @@ These do not emulate the native look-and-feel of the platform. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. module:: tkinter.commondialog - :platform: Tk :synopsis: Tkinter base class for dialogs **Source code:** :source:`Lib/tkinter/commondialog.py` diff --git a/Doc/library/fcntl.rst b/Doc/library/fcntl.rst index 2c9e883f5690..6e69d24a0e45 100644 --- a/Doc/library/fcntl.rst +++ b/Doc/library/fcntl.rst @@ -2,7 +2,6 @@ ========================================================== .. module:: fcntl - :platform: Unix :synopsis: The fcntl() and ioctl() system calls. .. sectionauthor:: Jaap Vermeulen diff --git a/Doc/library/grp.rst b/Doc/library/grp.rst index d1c7f22a2097..f436970e791a 100644 --- a/Doc/library/grp.rst +++ b/Doc/library/grp.rst @@ -2,7 +2,6 @@ ================================== .. module:: grp - :platform: Unix :synopsis: The group database (getgrnam() and friends). -------------- diff --git a/Doc/library/msvcrt.rst b/Doc/library/msvcrt.rst index 80f3ae4ee3f5..ee6798f969a1 100644 --- a/Doc/library/msvcrt.rst +++ b/Doc/library/msvcrt.rst @@ -2,7 +2,6 @@ =========================================================== .. module:: msvcrt - :platform: Windows :synopsis: Miscellaneous useful routines from the MS VC++ runtime. .. sectionauthor:: Fred L. Drake, Jr. diff --git a/Doc/library/posix.rst b/Doc/library/posix.rst index c52661ae1125..1f1ca03dfd62 100644 --- a/Doc/library/posix.rst +++ b/Doc/library/posix.rst @@ -2,7 +2,6 @@ ==================================================== .. module:: posix - :platform: Unix :synopsis: The most common POSIX system calls (normally used via module os). -------------- diff --git a/Doc/library/pty.rst b/Doc/library/pty.rst index 397cf0ea7cec..f0314ea5af81 100644 --- a/Doc/library/pty.rst +++ b/Doc/library/pty.rst @@ -2,7 +2,6 @@ ========================================= .. module:: pty - :platform: Unix :synopsis: Pseudo-Terminal Handling for Unix. .. moduleauthor:: Steen Lumholt diff --git a/Doc/library/pwd.rst b/Doc/library/pwd.rst index e1ff32912132..7691fed2c7cb 100644 --- a/Doc/library/pwd.rst +++ b/Doc/library/pwd.rst @@ -2,7 +2,6 @@ ===================================== .. module:: pwd - :platform: Unix :synopsis: The password database (getpwnam() and friends). -------------- diff --git a/Doc/library/readline.rst b/Doc/library/readline.rst index 1bdfb6ce0ed4..59f5b54a042e 100644 --- a/Doc/library/readline.rst +++ b/Doc/library/readline.rst @@ -2,7 +2,6 @@ =========================================== .. module:: readline - :platform: Unix :synopsis: GNU readline support for Python. .. sectionauthor:: Skip Montanaro @@ -28,6 +27,8 @@ Readline library in general. .. include:: ../includes/optional-module.rst +.. availability:: Unix. + .. note:: The underlying Readline library API may be implemented by diff --git a/Doc/library/resource.rst b/Doc/library/resource.rst index b176a28fdfe3..94bfbeab9676 100644 --- a/Doc/library/resource.rst +++ b/Doc/library/resource.rst @@ -2,7 +2,6 @@ =============================================== .. module:: resource - :platform: Unix :synopsis: An interface to provide resource usage information on the current process. .. moduleauthor:: Jeremy Hylton diff --git a/Doc/library/syslog.rst b/Doc/library/syslog.rst index 548898a37bc6..b6bf01240951 100644 --- a/Doc/library/syslog.rst +++ b/Doc/library/syslog.rst @@ -2,7 +2,6 @@ =============================================== .. module:: syslog - :platform: Unix :synopsis: An interface to the Unix syslog library routines. -------------- diff --git a/Doc/library/termios.rst b/Doc/library/termios.rst index e3ce596d1848..537dfcedd8cf 100644 --- a/Doc/library/termios.rst +++ b/Doc/library/termios.rst @@ -2,7 +2,6 @@ =========================================== .. module:: termios - :platform: Unix :synopsis: POSIX style tty control. .. index:: diff --git a/Doc/library/tkinter.colorchooser.rst b/Doc/library/tkinter.colorchooser.rst index a8468a480735..73f8f76a2104 100644 --- a/Doc/library/tkinter.colorchooser.rst +++ b/Doc/library/tkinter.colorchooser.rst @@ -2,7 +2,6 @@ ====================================================== .. module:: tkinter.colorchooser - :platform: Tk :synopsis: Color choosing dialog **Source code:** :source:`Lib/tkinter/colorchooser.py` diff --git a/Doc/library/tkinter.dnd.rst b/Doc/library/tkinter.dnd.rst index 8c179d9793a8..48d16ccb204b 100644 --- a/Doc/library/tkinter.dnd.rst +++ b/Doc/library/tkinter.dnd.rst @@ -2,7 +2,6 @@ ============================================= .. module:: tkinter.dnd - :platform: Tk :synopsis: Tkinter drag-and-drop interface **Source code:** :source:`Lib/tkinter/dnd.py` diff --git a/Doc/library/tkinter.font.rst b/Doc/library/tkinter.font.rst index 9d7b3e0fc227..9eecb803c3ae 100644 --- a/Doc/library/tkinter.font.rst +++ b/Doc/library/tkinter.font.rst @@ -2,7 +2,6 @@ ============================================= .. module:: tkinter.font - :platform: Tk :synopsis: Tkinter font-wrapping class **Source code:** :source:`Lib/tkinter/font.py` diff --git a/Doc/library/tkinter.messagebox.rst b/Doc/library/tkinter.messagebox.rst index 4503913d6889..2a69d2826385 100644 --- a/Doc/library/tkinter.messagebox.rst +++ b/Doc/library/tkinter.messagebox.rst @@ -2,7 +2,6 @@ ====================================================== .. module:: tkinter.messagebox - :platform: Tk :synopsis: Various types of alert dialogs **Source code:** :source:`Lib/tkinter/messagebox.py` diff --git a/Doc/library/tkinter.scrolledtext.rst b/Doc/library/tkinter.scrolledtext.rst index d2543c524b25..6c3c74afd47d 100644 --- a/Doc/library/tkinter.scrolledtext.rst +++ b/Doc/library/tkinter.scrolledtext.rst @@ -2,7 +2,6 @@ ===================================================== .. module:: tkinter.scrolledtext - :platform: Tk :synopsis: Text widget with a vertical scroll bar. .. sectionauthor:: Fred L. Drake, Jr. diff --git a/Doc/library/tty.rst b/Doc/library/tty.rst index b2fe1bac9b0b..fe46be8b3211 100644 --- a/Doc/library/tty.rst +++ b/Doc/library/tty.rst @@ -2,7 +2,6 @@ ========================================== .. module:: tty - :platform: Unix :synopsis: Utility functions that perform common terminal control operations. .. moduleauthor:: Steen Lumholt diff --git a/Doc/library/winreg.rst b/Doc/library/winreg.rst index 99137db4496c..12f9252af935 100644 --- a/Doc/library/winreg.rst +++ b/Doc/library/winreg.rst @@ -2,7 +2,6 @@ ========================================== .. module:: winreg - :platform: Windows :synopsis: Routines and objects for manipulating the Windows registry. .. sectionauthor:: Mark Hammond diff --git a/Doc/library/winsound.rst b/Doc/library/winsound.rst index 8efe4b1ee643..730b1bac6580 100644 --- a/Doc/library/winsound.rst +++ b/Doc/library/winsound.rst @@ -2,7 +2,6 @@ ======================================================== .. module:: winsound - :platform: Windows :synopsis: Access to the sound-playing machinery for Windows. .. moduleauthor:: Toby Dickenson