def _stripslashes(s):
  r = re.sub(r"\\(n|r)", "\n", s)
  r = re.sub(r"\\", "", r)
  return r
Removes trailing and leading backslashes from string
dataset/ETHPy150Open architv/harvey/harvey/harvey.py/_stripslashes