Fixes latest Python 2.6 compatibility issues

This commit is contained in:
Miroslav Stampar
2017-04-06 11:37:42 +02:00
parent cfe34f61b8
commit b4c4d3f72a
3 changed files with 4 additions and 4 deletions

View File

@@ -206,7 +206,7 @@ class Web:
if getOutput in ("y", "Y"):
headers = {}
been = {conf.url}
been = set([conf.url])
for match in re.finditer(r"=['\"]((https?):)?(//[^/'\"]+)?(/[\w/.-]*)\bwp-", kb.originalPage, re.I):
url = "%s%s" % (conf.url.replace(conf.path, match.group(4)), "wp-content/wp-db.php")