def unescape(text):
    """Unescapes text

    >>> unescape(u'abc')
    u'abc'
    >>> unescape(u'\\abc')
    u'abc'
    >>> unescape(u'\\\\abc')
    u'\\abc'

    """
    # Note: We can ditch this and do it in tokenizing if tokenizing
    # returned typed tokens rather than a list of strings.
    new_text = []
    escape = False
    for c in text:
        if not escape and c == u'\\':
            escape = True
            continue

        new_text.append(c)
        escape = False

    return u''.join(new_text)