[Zope3-checkins] SVN: Zope3/trunk/src/persistence/__init__.py the persistence package will be going away; issue a DeprecationWarning

Fred L. Drake, Jr. fred at zope.com
Wed May 26 16:11:16 EDT 2004


Log message for revision 25025:
the persistence package will be going away; issue a DeprecationWarning


-=-
Modified: Zope3/trunk/src/persistence/__init__.py
===================================================================
--- Zope3/trunk/src/persistence/__init__.py	2004-05-26 20:07:31 UTC (rev 25024)
+++ Zope3/trunk/src/persistence/__init__.py	2004-05-26 20:11:16 UTC (rev 25025)
@@ -13,5 +13,12 @@
 ##############################################################################
 """Provide access to Persistent C extension types."""
 
+import warnings
+
 from persistent import Persistent
 
+
+_msg = "the '%s' module is obsolete; use 'persistent' instead" % __name__
+warnings.warn(_msg, DeprecationWarning)
+
+del warnings, _msg




More information about the Zope3-Checkins mailing list