Skip to content

Commit 9dc476b

Browse files
authored
gh-104773: PEP 594: Remove the telnetlib module (#104778)
1 parent 5ecd8c8 commit 9dc476b

14 files changed

+11
-1355
lines changed

Doc/library/superseded.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,5 @@ backwards compatibility. They have been superseded by other modules.
2727
sndhdr.rst
2828
spwd.rst
2929
sunau.rst
30-
telnetlib.rst
3130
uu.rst
3231
xdrlib.rst

Doc/library/telnetlib.rst

Lines changed: 0 additions & 262 deletions
This file was deleted.

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ Doc/library/sys_path_init.rst
215215
Doc/library/sysconfig.rst
216216
Doc/library/syslog.rst
217217
Doc/library/tarfile.rst
218-
Doc/library/telnetlib.rst
219218
Doc/library/tempfile.rst
220219
Doc/library/termios.rst
221220
Doc/library/test.rst

Doc/whatsnew/2.6.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2465,7 +2465,7 @@ changes, or look through the Subversion logs for all the details.
24652465
(All changes contributed by Lars Gustäbel).
24662466

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

24712471
* The :class:`tempfile.NamedTemporaryFile` class usually deletes

Doc/whatsnew/3.11.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1731,7 +1731,7 @@ Modules
17311731
slated for removal in Python 3.13:
17321732

17331733
+---------------------+---------------------+---------------------+---------------------+---------------------+
1734-
| :mod:`aifc` | :mod:`chunk` | :mod:`msilib` | :mod:`pipes` | :mod:`telnetlib` |
1734+
| :mod:`aifc` | :mod:`chunk` | :mod:`msilib` | :mod:`pipes` | :mod:`!telnetlib` |
17351735
+---------------------+---------------------+---------------------+---------------------+---------------------+
17361736
| :mod:`audioop` | :mod:`crypt` | :mod:`nis` | :mod:`sndhdr` | :mod:`uu` |
17371737
+---------------------+---------------------+---------------------+---------------------+---------------------+

Doc/whatsnew/3.12.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ Modules (see :pep:`594`):
819819
* :mod:`sndhdr`
820820
* :mod:`spwd`
821821
* :mod:`sunau`
822-
* :mod:`telnetlib`
822+
* :mod:`!telnetlib`
823823
* :mod:`uu`
824824
* :mod:`xdrlib`
825825

Doc/whatsnew/3.13.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ Deprecated
102102
Removed
103103
=======
104104

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

106110

107111
Porting to Python 3.13

Doc/whatsnew/3.6.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ rather than the version that is being emulated for the process
15201520
telnetlib
15211521
---------
15221522

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

15261526

0 commit comments

Comments
 (0)