Skip to content

Commit

Permalink
gh-104773: PEP 594: Remove the telnetlib module (#104778)
Browse files Browse the repository at this point in the history
  • Loading branch information
vstinner authored May 23, 2023
1 parent 5ecd8c8 commit 9dc476b
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 1,355 deletions.
1 change: 0 additions & 1 deletion Doc/library/superseded.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,5 @@ backwards compatibility. They have been superseded by other modules.
sndhdr.rst
spwd.rst
sunau.rst
telnetlib.rst
uu.rst
xdrlib.rst
262 changes: 0 additions & 262 deletions Doc/library/telnetlib.rst

This file was deleted.

1 change: 0 additions & 1 deletion Doc/tools/.nitignore
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ Doc/library/sys_path_init.rst
Doc/library/sysconfig.rst
Doc/library/syslog.rst
Doc/library/tarfile.rst
Doc/library/telnetlib.rst
Doc/library/tempfile.rst
Doc/library/termios.rst
Doc/library/test.rst
Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/2.6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2465,7 +2465,7 @@ changes, or look through the Subversion logs for all the details.
(All changes contributed by Lars Gustäbel).

* An optional ``timeout`` parameter was added to the
:class:`telnetlib.Telnet` class constructor, specifying a timeout
:class:`!telnetlib.Telnet` class constructor, specifying a timeout
measured in seconds. (Added by Facundo Batista.)

* The :class:`tempfile.NamedTemporaryFile` class usually deletes
Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1731,7 +1731,7 @@ Modules
slated for removal in Python 3.13:

+---------------------+---------------------+---------------------+---------------------+---------------------+
| :mod:`aifc` | :mod:`chunk` | :mod:`msilib` | :mod:`pipes` | :mod:`telnetlib` |
| :mod:`aifc` | :mod:`chunk` | :mod:`msilib` | :mod:`pipes` | :mod:`!telnetlib` |
+---------------------+---------------------+---------------------+---------------------+---------------------+
| :mod:`audioop` | :mod:`crypt` | :mod:`nis` | :mod:`sndhdr` | :mod:`uu` |
+---------------------+---------------------+---------------------+---------------------+---------------------+
Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.12.rst
Original file line number Diff line number Diff line change
Expand Up @@ -819,7 +819,7 @@ Modules (see :pep:`594`):
* :mod:`sndhdr`
* :mod:`spwd`
* :mod:`sunau`
* :mod:`telnetlib`
* :mod:`!telnetlib`
* :mod:`uu`
* :mod:`xdrlib`

Expand Down
4 changes: 4 additions & 0 deletions Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ Deprecated
Removed
=======

* :pep:`594`: Remove the :mod:`!telnetlib` module, deprecated in Python 3.11:
use the projects `telnetlib3 <https://pypi.org/project/telnetlib3/>`_ or
`Exscript <https://pypi.org/project/Exscript/>`_ instead.
(Contributed by Victor Stinner in :gh:`104773`.)


Porting to Python 3.13
Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.6.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ rather than the version that is being emulated for the process
telnetlib
---------

:class:`~telnetlib.Telnet` is now a context manager (contributed by
:class:`!telnetlib.Telnet` is now a context manager (contributed by
Stéphane Wirtel in :issue:`25485`).


Expand Down
Loading

0 comments on commit 9dc476b

Please sign in to comment.