Comment 3 for bug 323270

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 323270] Re: DeprecationWarning: the md5 module is deprecated; use hashlib instead

On Fri, 2009-01-30 at 19:00 +0000, Ronald Blaschke wrote:
> Not exactly sure, but I think hashlib is already available in 2.5, it's
> just that md5 is deprecated with 2.6. Here's what I did for my 2.6
> install (the warning is just too annoying.)
It's not available in python2.4 though, and we need it to work there
too. Does:

import hashlib

hashlib.md5.new()

work ?
--
Jelmer Vernooij <email address hidden> - http://samba.org/~jelmer/
Jabber: <email address hidden>