diff --git a/Lib/encodings/uu_codec.py b/Lib/encodings/uu_codec.py index 4e58c62fe9ef0f..fc733037c01632 100644 --- a/Lib/encodings/uu_codec.py +++ b/Lib/encodings/uu_codec.py @@ -7,13 +7,15 @@ modified by Jack Jansen and Fredrik Lundh. """ -import codecs import binascii +import codecs +import warnings from io import BytesIO ### Codec APIs def uu_encode(input, errors='strict', filename='', mode=0o666): + warnings._deprecated(__name__, remove=(3, 13)) assert errors == 'strict' infile = BytesIO(input) outfile = BytesIO() @@ -35,6 +37,7 @@ def uu_encode(input, errors='strict', filename='', mode=0o666): return (outfile.getvalue(), len(input)) def uu_decode(input, errors='strict'): + warnings._deprecated(__name__, remove=(3, 13)) assert errors == 'strict' infile = BytesIO(input) outfile = BytesIO()