frontmatter/util.py
def u(text, encoding='utf-8'):
    "Return unicode text, no matter what"

    if isinstance(text, six.binary_type):
        text = text.decode(encoding)

    # it's already unicode
    text = text.replace('\r\n', '\n')
    return text
def u(text, encoding='utf-8'):
    "Return unicode text, no matter what"

    if isinstance(text, six.binary_type):
        text = text.decode(encoding)

    # it's already unicode
    text = text.replace('\r\n', '\n')
    return text
def u ( text , encoding = 'utf-8' ) : if isinstance ( text , six . binary_type ) : text = text . decode ( encoding ) # it's already unicode text = text . replace ( '\r\n' , '\n' ) return text
Return unicode text, no matter what
Return unicode text no matter what