[Zope-Checkins] SVN: Zope/branches/2.11/ Noted long-standing but
silent deprecation of Zope2-style interfaces
Tres Seaver
tseaver at palladion.com
Sun May 25 01:29:29 EDT 2008
Log message for revision 86939:
Noted long-standing but silent deprecation of Zope2-style interfaces
o Issue deprecation warning on import of the Interface package). That package
is already gone on the trunk.
Changed:
U Zope/branches/2.11/doc/CHANGES.txt
U Zope/branches/2.11/lib/python/Interface/__init__.py
-=-
Modified: Zope/branches/2.11/doc/CHANGES.txt
===================================================================
--- Zope/branches/2.11/doc/CHANGES.txt 2008-05-25 02:58:13 UTC (rev 86938)
+++ Zope/branches/2.11/doc/CHANGES.txt 2008-05-25 05:29:27 UTC (rev 86939)
@@ -4,6 +4,14 @@
Change information for previous versions of Zope can be found in the
file HISTORY.txt.
+ After Zope 2.11 rc 1
+
+ Restructuring
+
+ - Noted long-standing but silent deprecation of Zope2-style
+ interfaces (on import of the Interface package). That package
+ is already gone on the trunk.
+
Zope 2.11 rc 1 (2008/05/08)
Bugs Fixed
Modified: Zope/branches/2.11/lib/python/Interface/__init__.py
===================================================================
--- Zope/branches/2.11/lib/python/Interface/__init__.py 2008-05-25 02:58:13 UTC (rev 86938)
+++ Zope/branches/2.11/lib/python/Interface/__init__.py 2008-05-25 05:29:27 UTC (rev 86939)
@@ -66,6 +66,11 @@
Revision information:
$Id$
"""
+import warnings
+warnings.warn(
+ 'The Interface package is deprecated and will be removed '
+ 'in Zope 2.12. Use zope.interface instead.',
+ DeprecationWarning, stacklevel=2)
from _Interface import Interface
from Attribute import Attribute
More information about the Zope-Checkins
mailing list