[Checkins] SVN: zope.app.security/trunk/ Don't load security declarations for `sha` and `md5` modules on Python 2.6, as they were deprecated there. This is done pretty the same way, like the check for Python 2.5

Dan Korostelev nadako at gmail.com
Thu Mar 5 05:10:57 EST 2009


2009/3/5 Stephan Richter <srichter at cosmos.phy.tufts.edu>:
> On Wednesday 04 March 2009, Dan Korostelev wrote:
>>   Don't load security declarations for `sha` and `md5` modules on Python
>> 2.6, as they were deprecated there. This is done pretty the same way, like
>> the check for Python 2.5 for excluding `gopherlib` in previous releases.
>> However, it's quite an ugly way, it works and anyway, modules behind
>> security proxies are not used much, so I believe that it's okay. :-)
>
> We really should allow a condition that let's you check for the Python version
> directly. It is clearly a common use case while transitioning to another
> Python release.

I think we could even provide some pluggability for the condition
expression. I'll take a look on that.

-- 
WBR, Dan Korostelev


More information about the Checkins mailing list