fix cache key

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@1443 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2004-08-19 23:05:41 +00:00
parent c37d3acd50
commit 726aac7ac0

View file

@ -93,14 +93,14 @@ class FileUrl (urlbase.UrlBase):
self.has_content = True
return self.data
def get_cache_keys (self):
def get_cache_key (self):
# the host in urlparts is lowercase()d
if self.urlparts:
self.urlparts[4] = self.anchor
key = urlparse.urlunsplit(self.urlparts)
self.urlparts[4] = ''
return [key]
return []
return key
return None
def is_html (self):
if linkcheck.checker.extensions['html'].search(self.url):