Skip to content

Commit

Permalink
pythongh-104773: PEP 594: Remove the uu module (python#104932)
Browse files Browse the repository at this point in the history
Doc/license.rst: Keep the UUencode and UUdecode license since it's
also used by the uu codec.
  • Loading branch information
vstinner authored May 25, 2023
1 parent e4127ea commit dbc8216
Show file tree
Hide file tree
Showing 14 changed files with 12 additions and 589 deletions.
6 changes: 1 addition & 5 deletions Doc/library/binascii.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
representations.

.. index::
pair: module; uu
pair: module; base64

--------------

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

Module :mod:`uu`
Support for UU encoding used on Unix.

Module :mod:`quopri`
Support for quoted-printable encoding used in MIME email messages.
1 change: 0 additions & 1 deletion Doc/library/superseded.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,3 @@ backwards compatibility. They have been superseded by other modules.
chunk.rst
imghdr.rst
optparse.rst
uu.rst
72 changes: 0 additions & 72 deletions Doc/library/uu.rst

This file was deleted.

2 changes: 1 addition & 1 deletion Doc/license.rst
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ The :mod:`trace` module contains the following notice::
UUencode and UUdecode functions
-------------------------------

The :mod:`uu` module contains the following notice::
The ``uu`` codec contains the following notice::

Copyright 1994 by Lance Ellinghouse
Cathedral City, California Republic, United States of America.
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 @@ -1733,7 +1733,7 @@ Modules
+---------------------+---------------------+---------------------+---------------------+---------------------+
| :mod:`aifc` | :mod:`chunk` | :mod:`!msilib` | :mod:`!pipes` | :mod:`!telnetlib` |
+---------------------+---------------------+---------------------+---------------------+---------------------+
| :mod:`audioop` | :mod:`!crypt` | :mod:`!nis` | :mod:`!sndhdr` | :mod:`uu` |
| :mod:`audioop` | :mod:`!crypt` | :mod:`!nis` | :mod:`!sndhdr` | :mod:`!uu` |
+---------------------+---------------------+---------------------+---------------------+---------------------+
| :mod:`!cgi` | :mod:`imghdr` | :mod:`!nntplib` | :mod:`!spwd` | :mod:`!xdrlib` |
+---------------------+---------------------+---------------------+---------------------+---------------------+
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 @@ -935,7 +935,7 @@ Modules (see :pep:`594`):
* :mod:`!spwd`
* :mod:`!sunau`
* :mod:`!telnetlib`
* :mod:`uu`
* :mod:`!uu`
* :mod:`!xdrlib`

APIs:
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 @@ -217,6 +217,10 @@ Removed

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

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


Porting to Python 3.13
======================
Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1547,7 +1547,7 @@ adding ``~`` to the set of characters that are never quoted by default.
uu
--

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

Expand Down
Loading

0 comments on commit dbc8216

Please sign in to comment.