[Zope3-checkins] SVN: Zope3/trunk/src/zope/i18n/messageid.py get
rid of deprecation warning during functional tests (and potentially
Philipp von Weitershausen
philikon at philikon.de
Thu Oct 20 08:24:35 EDT 2005
Log message for revision 39524:
get rid of deprecation warning during functional tests (and potentially
during APIDoc usage) by only making the import of classes inside this module
generate the warning, not the import of the module itself.
Changed:
U Zope3/trunk/src/zope/i18n/messageid.py
-=-
Modified: Zope3/trunk/src/zope/i18n/messageid.py
===================================================================
--- Zope3/trunk/src/zope/i18n/messageid.py 2005-10-20 11:37:17 UTC (rev 39523)
+++ Zope3/trunk/src/zope/i18n/messageid.py 2005-10-20 12:24:35 UTC (rev 39524)
@@ -16,15 +16,21 @@
$Id$
"""
-import warnings
+##############################################################################
+# BBB 2005/10/10 -- removed the whole module for Zope 3.3
+#
import zope.deprecation
zope.deprecation.__show__.off()
from zope.i18nmessageid import MessageID, MessageIDFactory
from zope.i18nmessageid import Message, MessageFactory
zope.deprecation.__show__.on()
-warnings.warn("The zope.i18n.messageid module as a backwards-compatible import "
- "location for i18n message ids has been deprecated and will be "
- "removed from Zope 3.3. Please use Message and MessageFactory "
- "from the zope.i18nmessageid package instead.",
- DeprecationWarning, 2)
+zope.deprecation.deprecated(
+ ('MessageID', 'MessageIDFactory' 'Message', 'MessageFactory'),
+ "The zope.i18n.messageid module as a backwards-compatible import "
+ "location for i18n message ids has been deprecated and will be "
+ "removed from Zope 3.3. Please use Message and MessageFactory "
+ "from the zope.i18nmessageid package instead."
+ )
+#
+##############################################################################
More information about the Zope3-Checkins
mailing list