Menu

#42 warning sha/md5 is deprecated

open
5
2010-11-04
2010-11-04
Anonymous
No

calling "import xmpp" attracts a few warnings:
/usr/lib/python2.6/site-packages/xmpp/auth.py:24: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
import sha,base64,random,dispatcher,re
/usr/lib/python2.6/site-packages/xmpp/auth.py:26: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import md5

it will be nice to fix this. simply replace "import sha,md5" to "import hashlib".

Discussion


Log in to post a comment.