fix: memory improvement

This commit is contained in:
Mahdi Dibaiee 2017-04-22 13:21:43 +04:30
parent f67502e68c
commit 632a840572

View File

@ -79,7 +79,7 @@ for host in sites:
if href and href != '/': if href and href != '/':
p = to_absolute(href, host) p = to_absolute(href, host)
if p and p.netloc == main.netloc: if p and p.netloc == main.netloc and p.geturl() not in visited:
queue.insert(0, p) queue.insert(0, p)