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] 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.