diff --git a/lib/request/basic.py b/lib/request/basic.py index e99b81dee..873099904 100644 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -77,9 +77,7 @@ def parseResponse(page, headers): absFilePathsRegExp = ( r" in (?P.*?) on line", r"(?:>|\s)(?P[A-Za-z]:[\\/][\w.\\/]*)", r"(?:>|\s)(?P/\w[/\w.]+)" ) for absFilePathRegExp in absFilePathsRegExp: - reobj = re.compile(absFilePathRegExp) - - for match in reobj.finditer(page): + for match in re.finditer(absFilePathRegExp, page): absFilePath = match.group("result").strip() page = page.replace(absFilePath, "")