diff options
author | Victor Stinner <vstinner@python.org> | 2020-01-16 09:24:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-16 09:24:16 (GMT) |
commit | 210c19e3c5b86535a73487fa737752de8eb1d866 (patch) | |
tree | 81473e9158c48984c4e71827275143ed3c8c9504 /Lib/base64.py | |
parent | fad8b5674c66d9e00bb788e30adddb0c256c787b (diff) | |
download | cpython-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-x | Lib/base64.py | 16 |
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(): |