for line in whence:
match = re.match(r"(?:RawFile|File):\s*(.*)", line)
if match:
- yield match.group(1).replace("\ ", " ").replace('"', "")
+ yield match.group(1).replace(r"\ ", " ").replace('"', "")
continue
if match:
linkname, target = match.group(1).split("->")
- linkname = linkname.strip().replace("\ ", " ").replace('"', "")
- target = target.strip().replace("\ ", " ").replace('"', "")
+ linkname = linkname.strip().replace(r"\ ", " ").replace('"', "")
+ target = target.strip().replace(r"\ ", " ").replace('"', "")
# Link target is relative to the link
target = os.path.join(os.path.dirname(linkname), target)