Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ead88c

Browse files
committed
minor tweak
1 parent 131789a commit 3ead88c

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

lib/request/basic.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,7 @@ def parseResponse(page, headers):
7777
absFilePathsRegExp = ( r" in <b>(?P<result>.*?)</b> on line", r"(?:>|\s)(?P<result>[A-Za-z]:[\\/][\w.\\/]*)", r"(?:>|\s)(?P<result>/\w[/\w.]+)" )
7878

7979
for absFilePathRegExp in absFilePathsRegExp:
80-
reobj = re.compile(absFilePathRegExp)
81-
82-
for match in reobj.finditer(page):
80+
for match in re.finditer(absFilePathRegExp, page):
8381
absFilePath = match.group("result").strip()
8482
page = page.replace(absFilePath, "")
8583

0 commit comments

Comments
 (0)