3.1 -> 3.2: base64 lost deprecation warning

Ethan Furman ethan at stoneleaf.us
Mon Feb 28 21:51:32 CET 2011


Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit 
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
--> import base64
--> base64.encodestring(b'this is a test')
__main__:1: DeprecationWarning: encodestring() is a deprecated alias, 
use encodebytes()
b'dGhpcyBpcyBhIHRlc3Q=\n'


Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit 
(Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
--> import base64
--> base64.encodestring(b'another test')
b'dGhpcyBpcyBhIHRlc3Q=\n'


The deprecation warning has gone away in 3.2, but the function 
remains... does anyone know if this was intentional?

~Ethan~



More information about the Python-list mailing list