https://github.com/python/cpython/commit/20caf1c08440684b618d2166022ae82b2db3b696
commit: 20caf1c08440684b618d2166022ae82b2db3b696
branch: main
author: Stan Ulbrych <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2026-02-19T13:45:30+02:00
summary:
Remove unused :platform: in module's docs (GH-144988)
It has not been outputted since Sphinx 1.1.
files:
M Doc/library/curses.rst
M Doc/library/dbm.rst
M Doc/library/dialog.rst
M Doc/library/fcntl.rst
M Doc/library/grp.rst
M Doc/library/msvcrt.rst
M Doc/library/posix.rst
M Doc/library/pty.rst
M Doc/library/pwd.rst
M Doc/library/readline.rst
M Doc/library/resource.rst
M Doc/library/syslog.rst
M Doc/library/termios.rst
M Doc/library/tkinter.colorchooser.rst
M Doc/library/tkinter.dnd.rst
M Doc/library/tkinter.font.rst
M Doc/library/tkinter.messagebox.rst
M Doc/library/tkinter.scrolledtext.rst
M Doc/library/tty.rst
M Doc/library/winreg.rst
M Doc/library/winsound.rst
diff --git a/Doc/library/curses.rst b/Doc/library/curses.rst
index 84efc6654e87c6..2dc638b3d4014b 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 <[email protected]>
.. sectionauthor:: Eric Raymond <[email protected]>
@@ -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 2481d77f5fbfba..646981e8692cc5 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 6fee23e942183d..5d522556235a02 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 2c9e883f56904f..6e69d24a0e4586 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 d1c7f22a209780..f436970e791ace 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 80f3ae4ee3f5c1..ee6798f969a1b6 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. <[email protected]>
diff --git a/Doc/library/posix.rst b/Doc/library/posix.rst
index c52661ae112541..1f1ca03dfd6222 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 397cf0ea7cece4..f0314ea5af8118 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 e1ff32912132f7..7691fed2c7cb83 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 1bdfb6ce0ed426..59f5b54a042ea3 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 <[email protected]>
@@ -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 b176a28fdfe35b..94bfbeab967693 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 <[email protected]>
diff --git a/Doc/library/syslog.rst b/Doc/library/syslog.rst
index 548898a37bc6ea..b6bf01240951eb 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 e3ce596d18486f..537dfcedd8cf5a 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 a8468a4807357f..73f8f76a21044b 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 8c179d9793a855..48d16ccb204b9d 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 9d7b3e0fc227c1..9eecb803c3aedc 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 4503913d6889b8..2a69d282638529 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 d2543c524b2532..6c3c74afd47d82 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. <[email protected]>
diff --git a/Doc/library/tty.rst b/Doc/library/tty.rst
index b2fe1bac9b0b2f..fe46be8b3211a2 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 99137db4496c55..12f9252af9356e 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 <[email protected]>
diff --git a/Doc/library/winsound.rst b/Doc/library/winsound.rst
index 8efe4b1ee643e7..730b1bac658002 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 <[email protected]>
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]