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

Jim Fulton jim at zope.com
Thu Nov 19 17:38:51 EST 2009


On Thu, Nov 19, 2009 at 4:50 PM, Chris Withers <chris at simplistix.co.uk> wrote:
> Jim Fulton wrote:
>>
>> On Wed, Nov 18, 2009 at 12:00 PM, Chris Withers <chris at simplistix.co.uk>
>> wrote:
>>>
>>> - Anyone know what to replace md5 with? The warning suggests hashlib,
>>
>> Yes
>>
>>> 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?
>>
>> No, ZODB works with Python 2.4 too.
>>
>> It's easy to handle this with a test on sys.version_info.
>
> OK, this is all done on trunk and 3.9 branch, I ran the test script with
> Python 2.4 and 2.6, no errors.

Cool, but can we please get an automated test? I don't run the manual
tests. I never will. :)

Jim

-- 
Jim Fulton


More information about the ZODB-Dev mailing list