def textile(value):
    try:
        import textile
    except ImportError:
        warnings.warn("The Python textile library isn't installed.",
                      RuntimeWarning)
        return value

    return textile.textile(force_text(value),
                           encoding='utf-8', output='utf-8')
Textile processing.
dataset/ETHPy150Open Fantomas42/django-blog-zinnia/zinnia/markups.py/textile