Esempio n. 1
0
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)
Esempio n. 2
0
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)