summaryrefslogtreecommitdiffstats
path: root/Lib/base64.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-01-16 09:24:16 (GMT)
committerGitHub <noreply@github.com>2020-01-16 09:24:16 (GMT)
commit210c19e3c5b86535a73487fa737752de8eb1d866 (patch)
tree81473e9158c48984c4e71827275143ed3c8c9504 /Lib/base64.py
parentfad8b5674c66d9e00bb788e30adddb0c256c787b (diff)
downloadcpython-210c19e3c5b86535a73487fa737752de8eb1d866.zip
cpython-210c19e3c5b86535a73487fa737752de8eb1d866.tar.gz
cpython-210c19e3c5b86535a73487fa737752de8eb1d866.tar.bz2
bpo-39351: Remove base64.encodestring() (GH-18022)
Remove base64.encodestring() and base64.decodestring(), aliases deprecated since Python 3.1: use base64.encodebytes() and base64.decodebytes() instead.
Diffstat (limited to 'Lib/base64.py')
-rwxr-xr-xLib/base64.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/Lib/base64.py b/Lib/base64.py
index 2e70223..a28109f 100755
--- a/Lib/base64.py
+++ b/Lib/base64.py
@@ -531,28 +531,12 @@ def encodebytes(s):
pieces.append(binascii.b2a_base64(chunk))
return b"".join(pieces)
-def encodestring(s):
- """Legacy alias of encodebytes()."""
- import warnings
- warnings.warn("encodestring() is a deprecated alias since 3.1, "
- "use encodebytes()",
- DeprecationWarning, 2)
- return encodebytes(s)
-
def decodebytes(s):
"""Decode a bytestring of base-64 data into a bytes object."""
_input_type_check(s)
return binascii.a2b_base64(s)
-def decodestring(s):
- """Legacy alias of decodebytes()."""
- import warnings
- warnings.warn("decodestring() is a deprecated alias since Python 3.1, "
- "use decodebytes()",
- DeprecationWarning, 2)
- return decodebytes(s)
-
# Usable as a script...
def main():