Fix comment typo

This commit is contained in:
Michael Manfre 2014-01-15 12:35:34 -05:00
parent c92f52ce2c
commit 4a2a45b495
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class OffsiteMiddleware(object):
def should_follow(self, request, spider):
regex = self.host_regex
# hostanme can be None for wrong urls (like javascript links)
# hostname can be None for wrong urls (like javascript links)
host = urlparse_cached(request).hostname or ''
return bool(regex.search(host))