def titlecase_filter(text):
    """Support for titlecase.py's titlecasing

    >>> titlecase("this V that")
    u'This v That'

    >>> titlecase("this is just an example.com")
    u'This Is Just an example.com'
    """
    text = force_unicode(text)
    try:
        import titlecase
    except __HOLE__:
        if settings.DEBUG:
            raise template.TemplateSyntaxError, "Error in {% titlecase %} filter: The titlecase.py library isn't installed."
        return text
    else:
        return titlecase.titlecase(text)
dataset/ETHPy150Open callowayproject/django-typogrify/typogrify/templatetags/typogrify.py/titlecase_filter