

def _stripslashes(s):
    'Removes trailing and leading backslashes from string'
    r = re.sub('\\\\(n|r)', '\n', s)
    r = re.sub('\\\\', '', r)
    return r

dataset/ETHPy150Open architv/harvey/harvey/harvey.py _stripslashes/original