3.1 -> 3.2: base64 lost deprecation warning

Ethan Furman ethan at stoneleaf.us
Mon Feb 28 23:26:14 CET 2011


Terry Reedy wrote:
> On 2/28/2011 3:51 PM, Ethan Furman wrote:
>> The deprecation warning has gone away in 3.2,
> 
> No, still there:
> def encodestring(s):
>     """Legacy alias of encodebytes()."""
>     import warnings
>     warnings.warn("encodestring() is a deprecated alias, use 
> encodebytes()",
>                   DeprecationWarning, 2)
>     return encodebytes(s)
> 
> In 3.2, DeprecationWarnings are turned off by default so as to not annoy 
> users who can do nothing about them and developers who do not want to do 
> anything at the moment. I presume the doc for warnings says how to turn 
> them back on.
> 

Ah, thank you!

~Ethan~



More information about the Python-list mailing list