def textile(value):
    try:
        import textile
    except __HOLE__:
        if settings.DEBUG:
            raise template.TemplateSyntaxError("Error in {% textile %} filter: The Python textile library isn't installed.")
        return force_unicode(value)
    else:
        return mark_safe(force_unicode(textile.textile(smart_str(value), encoding='utf-8', output='utf-8')))
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/django/contrib/markup/templatetags/markup.py/textile