From ab8cf5c8f0c616c13276d7df710c1541a1b7af14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Ho=C5=A1ek?= Date: Mon, 13 Jul 2026 12:29:02 +0200 Subject: [PATCH 1/2] Refer uu users to built-in alternative in codecs module The uu module was deprecated in Python 3.11 and removed in Python 3.13, but uuencode/uudecode functionality is still available in the standard library by using the "uu" codec with codecs.encode and codecs.decode. Mention this in the remains of the "uu" module documentation. --- Doc/library/uu.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Doc/library/uu.rst b/Doc/library/uu.rst index 0636d180294d474..140faece978c880 100644 --- a/Doc/library/uu.rst +++ b/Doc/library/uu.rst @@ -13,3 +13,7 @@ being deprecated in Python 3.11. The removal was decided in :pep:`594`. The last version of Python that provided the :mod:`!uu` module was `Python 3.12 `_. + +Encoding and decoding in the uu format can instead be achieved using +:func:`codecs.encode` and :func:`codecs.decode`, specifying :code:`"uu"` +as the codec. From 4aec5827671278fc9e7e544dea7c47d013ccd4f6 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Wed, 15 Jul 2026 19:43:40 +0200 Subject: [PATCH 2/2] Move before last version note and little touchups --- Doc/library/uu.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Doc/library/uu.rst b/Doc/library/uu.rst index 140faece978c880..cf6ec0fcef386d2 100644 --- a/Doc/library/uu.rst +++ b/Doc/library/uu.rst @@ -11,9 +11,9 @@ This module is no longer part of the Python standard library. It was :ref:`removed in Python 3.13 ` after being deprecated in Python 3.11. The removal was decided in :pep:`594`. +Encoding and decoding in the uu format can instead be achieved using +:func:`codecs.encode` and :func:`codecs.decode`, specifying ``"uu"`` +as the encoding. + The last version of Python that provided the :mod:`!uu` module was `Python 3.12 `_. - -Encoding and decoding in the uu format can instead be achieved using -:func:`codecs.encode` and :func:`codecs.decode`, specifying :code:`"uu"` -as the codec.