3.1 -> 3.2: base64 lost deprecation warning

Discussion in 'Python' started by Ethan Furman, Feb 28, 2011.

  1. Ethan Furman

    Ethan Furman Guest

    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~
    Ethan Furman, Feb 28, 2011
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ray Mitchell
    Replies:
    1
    Views:
    339
  2. Silas Snider

    StringBufferInputStream deprecation

    Silas Snider, Aug 25, 2004, in forum: Java
    Replies:
    2
    Views:
    4,619
    Simon Fairfax
    Aug 25, 2004
  3. Meyer, Tony

    FCNTL module deprecation warning

    Meyer, Tony, Jul 15, 2003, in forum: Python
    Replies:
    2
    Views:
    325
    Peter Hansen
    Jul 15, 2003
  4. Tony Meyer

    RE: FCNTL module deprecation warning

    Tony Meyer, Jul 16, 2003, in forum: Python
    Replies:
    0
    Views:
    612
    Tony Meyer
    Jul 16, 2003
  5. BoBi
    Replies:
    3
    Views:
    4,149
Loading...

Share This Page