diff --git a/tools/redditcrawl.py b/tools/redditcrawl.py index ee22378e..bd7101a2 100755 --- a/tools/redditcrawl.py +++ b/tools/redditcrawl.py @@ -59,7 +59,7 @@ # Two escape it again in the regex parser, so \\\\ is \ # Then anything but " or n is replaced with the first capture group (anything but " or n) # Test in repl: re.sub("\\\\([^\"n])", "\\1", "\\t < removed slash, t stays and > stays \\n \\\"") - re.sub("\\\\([^\"n])", "\\1", text) + text = re.sub("\\\\([^\"n])", "\\1", text) try: text = text.replace("\"id\": 0,", "\"id\": 0,\n\t\t\"submitted_by\": \""+submission.author.name+"\",") except AttributeError: