Log message for revision 66206:
  had this hanging 'round in my working copy:
  generate a deprecation warning when convenience function in StructuredText
  is called (the whole STructuredText package is deprecated).
  

Changed:
  U   Zope/trunk/lib/python/StructuredText/__init__.py

-=-
Modified: Zope/trunk/lib/python/StructuredText/__init__.py
===================================================================
--- Zope/trunk/lib/python/StructuredText/__init__.py    2006-03-26 21:59:31 UTC 
(rev 66205)
+++ Zope/trunk/lib/python/StructuredText/__init__.py    2006-03-26 22:01:24 UTC 
(rev 66206)
@@ -40,6 +40,11 @@
 DocBookArticle = docbook.DocBookArticle()
 
 def HTML(src, level=1):
+    import warnings
+    warnings.warn(
+        'The StructuredText package is deprecated and will be removed '
+        'in Zope 2.12. Use zope.structuredtext instead.',
+        DeprecationWarning, stacklevel=2)
     if isinstance(src, basestring):
         return ClassicHTML(src, level)
     return HTMLNG(src, level)

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to