def unescape(s):
    """Unescape a string containing \' or \" escapings"""

    corrections = (("\\'", "'"), ('\\"', '"'))

    for pattern, repl in corrections:
        s = s.replace(pattern, repl)

    return s