From 2e0f32353f5e3dffcc8f29239c272f04907e06e0 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 7 May 2006 09:12:25 +0000 Subject: some more small code improvements thanks to pychecker git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@252 86f53f14-5ff3-0310-afe5-9b438ce3f40c --- crawler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crawler.py') diff --git a/crawler.py b/crawler.py index b5b68f5..902c347 100644 --- a/crawler.py +++ b/crawler.py @@ -383,6 +383,7 @@ class Link: self.linkproblems = [] self.pageproblems = [] self.redirectdepth = 0 + self.redirectlist = None def _checkurl(self, url): """Check to see if the url is formatted properly, correct formatting @@ -462,7 +463,8 @@ class Link: def redirect(self, url): """Indicate that this link redirects to the specified url. Maximum redirect counting is done as well as loop detection.""" - # figure out depth + # figure out depth and urls that have been visited in this + # redirect list redirectdepth = 0 redirectlist = [] for parent in self.parents: -- cgit v1.2.3