def _render_quote(name, value, options, parent, context): warnings.warn('pybb.defaults._render_quote function is deprecated. ' 'This function is internal of new pybb.markup.bbcode.BBCodeParser class.', DeprecationWarning) from pybb.markup.bbcode import BBCodeParser return BBCodeParser()._render_quote(name, value, options, parent, context)
def bbcode(s): warnings.warn( bad_function_warning % { 'bad': 'pybb.defaults.bbcode', 'good': 'pybb.markup.bbcode.BBCodeParser', }, DeprecationWarning) from pybb.markup.bbcode import BBCodeParser return BBCodeParser().format(s)