Deprecated functions

Issue #17 resolved
c7protal
created an issue

Errors outputted:

c:\python31\lib\site-packages\django\contrib\sessions\backends\base.py:92: DeprecationWarning: encodestring() is a deprecated alias, use encodebytes() res = base64.encodestring(pickled + b(pickled_md5)) c:\python31\lib\site-packages\django\contrib\sessions\backends\base.py💯 DeprecationWarning: decodestring() is a deprecated alias, use decodebytes() encoded_data = base64.decodestring(session_data.encode('ascii'))

and

c:\python31\lib\site-packages\django\core\cache\backends\db.py:57: DeprecationWarning: encodestring() is a deprecated alias, use encodebytes() encoded = base64.encodestring(pickle.dumps(value, 2)).strip() Ec:\python31\lib\site-packages\django\core\cache\backends\db.py:39: DeprecationWarning: decodestring() is a deprecated alias, use decodebytes() return pickle.loads(base64.decodestring(value))

Done so far: Replacing the functions encodestring() and decodestring() for encodebytes() and decodebytes(), respectfully, works just fine.

Left to do: Write a fixer that does this automatically in both base.py and db.py when setup.py is executed with Python 3.x.

Comments (1)

  1. g8mjg

    This issue has been fixed, and resolved. However, getting 2to3 to run custom fixers is proving problematic. Sub-group three is closing this as completed, and we will make a seperate issue to address getting 2to3 to run our extra fixes, so we can continue to work on individual fixes in the interim.

    Addendum: This issue was resolved by the entirety of sub-group three, viz. g8mjg, g8tam, c7protal, g8way. Again, issues with assigning responsibility to multiple users.

  2. Log in to comment