Skip to content

Commit dbc8216

Browse files
authored
gh-104773: PEP 594: Remove the uu module (#104932)
Doc/license.rst: Keep the UUencode and UUdecode license since it's also used by the uu codec.
1 parent e4127ea commit dbc8216

File tree

14 files changed

+12
-589
lines changed

14 files changed

+12
-589
lines changed

Doc/library/binascii.rst

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@
66
representations.
77

88
.. index::
9-
pair: module; uu
109
pair: module; base64
1110

1211
--------------
1312

1413
The :mod:`binascii` module contains a number of methods to convert between
1514
binary and various ASCII-encoded binary representations. Normally, you will not
16-
use these functions directly but use wrapper modules like :mod:`uu` or
15+
use these functions directly but use wrapper modules like
1716
:mod:`base64` instead. The :mod:`binascii` module contains
1817
low-level functions written in C for greater speed that are used by the
1918
higher-level modules.
@@ -179,8 +178,5 @@ The :mod:`binascii` module defines the following functions:
179178
Support for RFC compliant base64-style encoding in base 16, 32, 64,
180179
and 85.
181180

182-
Module :mod:`uu`
183-
Support for UU encoding used on Unix.
184-
185181
Module :mod:`quopri`
186182
Support for quoted-printable encoding used in MIME email messages.

Doc/library/superseded.rst

-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,3 @@ backwards compatibility. They have been superseded by other modules.
1515
chunk.rst
1616
imghdr.rst
1717
optparse.rst
18-
uu.rst

Doc/library/uu.rst

-72
This file was deleted.

Doc/license.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ The :mod:`trace` module contains the following notice::
476476
UUencode and UUdecode functions
477477
-------------------------------
478478

479-
The :mod:`uu` module contains the following notice::
479+
The ``uu`` codec contains the following notice::
480480

481481
Copyright 1994 by Lance Ellinghouse
482482
Cathedral City, California Republic, United States of America.

Doc/whatsnew/3.11.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ Modules
17331733
+---------------------+---------------------+---------------------+---------------------+---------------------+
17341734
| :mod:`aifc` | :mod:`chunk` | :mod:`!msilib` | :mod:`!pipes` | :mod:`!telnetlib` |
17351735
+---------------------+---------------------+---------------------+---------------------+---------------------+
1736-
| :mod:`audioop` | :mod:`!crypt` | :mod:`!nis` | :mod:`!sndhdr` | :mod:`uu` |
1736+
| :mod:`audioop` | :mod:`!crypt` | :mod:`!nis` | :mod:`!sndhdr` | :mod:`!uu` |
17371737
+---------------------+---------------------+---------------------+---------------------+---------------------+
17381738
| :mod:`!cgi` | :mod:`imghdr` | :mod:`!nntplib` | :mod:`!spwd` | :mod:`!xdrlib` |
17391739
+---------------------+---------------------+---------------------+---------------------+---------------------+

Doc/whatsnew/3.12.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ Modules (see :pep:`594`):
935935
* :mod:`!spwd`
936936
* :mod:`!sunau`
937937
* :mod:`!telnetlib`
938-
* :mod:`uu`
938+
* :mod:`!uu`
939939
* :mod:`!xdrlib`
940940

941941
APIs:

Doc/whatsnew/3.13.rst

+4
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,10 @@ Removed
217217

218218
(Contributed by Victor Stinner in :gh:`104773`.)
219219

220+
* :pep:`594`: Remove the :mod:`!uu` module, deprecated in Python 3.11:
221+
the :mod:`base64` module is a modern alternative.
222+
(Contributed by Victor Stinner in :gh:`104773`.)
223+
220224

221225
Porting to Python 3.13
222226
======================

Doc/whatsnew/3.7.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1547,7 +1547,7 @@ adding ``~`` to the set of characters that are never quoted by default.
15471547
uu
15481548
--
15491549

1550-
The :func:`uu.encode` function now accepts an optional *backtick*
1550+
The :func:`!uu.encode` function now accepts an optional *backtick*
15511551
keyword argument. When it's true, zeros are represented by ``'`'``
15521552
instead of spaces. (Contributed by Xiang Zhang in :issue:`30103`.)
15531553

0 commit comments

Comments
 (0)