PyModerator, serverFiles.py:13: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha

David Robinow drobinow at gmail.com
Wed Apr 22 21:39:27 EDT 2009


On Wed, Apr 22, 2009 at 9:16 PM, Jim Carlock
<jcarlock at nospam.microcosmotalk.com> wrote:
> I downloaded Python 2.6.2 today. Anyone here know what that error in
> the subject really means and possibly what I should look at? I took
> a look at line 13 in the specified file and it states the line that
> it has a problem with.
>
> import sha
>
> I'm running Python in Windows XP.
>
> --
> Jim Carlock
> More Than Five Senses
> http://www.associatedcontent.com/article/381163/more_than_five_senses.html
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
It means you should change your code before "sha" goes away in some
future version.
Read about the hashlib module in "What's New in Python 2.5"  (that's
not a typo, this is a section in the 2.6 docs)
[You could have figured this out yourself by searching the docs]



More information about the Python-list mailing list