10000 gh-92613: Deprecate other uuencode functionality per PEP 594 & document as such by CAM-Gerlach · Pull Request #92758 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-92613: Deprecate other uuencode functionality per PEP 594 & document as such #92758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gh-92613: Deprecate the uuencode codec in codecs
  • Loading branch information
CAM-Gerlach committed Nov 8, 2022
commit e2fd5f68edeeb72f2974a395e78123bcdb2690ea
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