Skip to content

Commit

Permalink
pythongh-92613: Deprecate the uuencode codec in codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
CAM-Gerlach committed Nov 8, 2022
1 parent 0b4ffb0 commit e2fd5f6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Lib/encodings/uu_codec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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='<data>', mode=0o666):
warnings._deprecated(__name__, remove=(3, 13))
assert errors == 'strict'
infile = BytesIO(input)
outfile = BytesIO()
Expand All @@ -35,6 +37,7 @@ def uu_encode(input, errors='strict', filename='<data>', 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()
Expand Down

0 comments on commit e2fd5f6

Please sign in to comment.