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).
parent 8731a0ff
......@@ -40,6 +40,11 @@ DocBookChapterWithFigures = docbook.DocBookChapterWithFigures()
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)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment