Revision: 5482 Author: nicdumz Date: 2008-05-31 11:34:17 +0000 (Sat, 31 May 2008)
Log Message: ----------- erm. Fixing weblinkchecker.py : a "not" was missing :/
Modified Paths: -------------- trunk/pywikipedia/weblinkchecker.py
Modified: trunk/pywikipedia/weblinkchecker.py =================================================================== --- trunk/pywikipedia/weblinkchecker.py 2008-05-31 10:54:25 UTC (rev 5481) +++ trunk/pywikipedia/weblinkchecker.py 2008-05-31 11:34:17 UTC (rev 5482) @@ -477,7 +477,7 @@ # read the server's encoding, in case we need it later self.readEncodingFromResponse(response) # site down if the server status is between 400 and 499 - alive = response.status in range(400, 500) + alive = response.status not in range(400, 500) if response.status in self.HTTPignore: alive = False return alive, '%s %s' % (response.status, response.reason)
pywikipedia-l@lists.wikimedia.org