[ZODB-Dev] repozo uses md5 lib, which is deprecated in python 2.6

Chris Withers chris at simplistix.co.uk
Wed Nov 18 12:31:54 EST 2009


Christian Theune wrote:
>> - Anyone know what to replace md5 with? The warning suggests hashlib,
>> which landed in 2.5. I assume it's okay to just use hashlib rather than
>> worry about conditionally import md5 or hashlib, given that trunk ZODB
>> and 3.9 branch are only targeted at Python 2.5 and above, right?
> 
> Not sure about that. Most people I see that need to support 2.4 and 2.6 
> tend to provide a wrapper-function combined with a conditional import.

My understanding was that ZODB 3.9 (and therefore trunk too) only 
targeted 2.5+, perhaps Jim can confirm?

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk


More information about the ZODB-Dev mailing list