On Thursday 26 June 2008, Fred Drake wrote:
Someone changed the ZCML that registers the "gopherlib" module (why???) to this:
I did as you were aware of. :-) The gopherlib module was there before, I just shut up the deprecation warning.
<!-- This package has been deprecated in Python 2.5; let's use a cheap way of detecting Python 2.5 by checking whether the package "regex" exists, which has been deleted in that version. --> <module module="gopherlib" zcml:condition="installed regex"> <allow attributes="send_selection send_query" /> </module>
In trying to avoid a Python 2.5 deprecation warning (not removal), this code imports and causes a deprecation warning for a module that was declared obsolete in Python 1.5 (yes, that's a "1"!).
Isn't this just a little bit insane?
A deprecation warning was not issued until Python 2.5 though. How would I know?
I think the condition should be removed for zope.app.security 3.5.2, and the registration of gopherlib should be removed for 3.6.0.
I am not sure why you would want a 3.5.2 release, since nothing breaks. I am all in favor removing this declaration for 3.6.0. Regards, Stephan -- Stephan Richter Web Software Design, Development and Training Google me. "Zope Stephan Richter"