From 0d9881cf03160b82451713af78b87e272bfab63b Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Tue, 29 Apr 2014 18:43:21 +0200 Subject: [PATCH] Fix add_url() with local files. --- linkcheck/checker/fileurl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linkcheck/checker/fileurl.py b/linkcheck/checker/fileurl.py index 6422288c..8cac89e5 100644 --- a/linkcheck/checker/fileurl.py +++ b/linkcheck/checker/fileurl.py @@ -272,11 +272,11 @@ class FileUrl (urlbase.UrlBase): url = url[:i+1] return re.escape(url) - def add_url (self, url, line=0, column=0, name=u"", base=None): + def add_url (self, url, line=0, column=0, page=0, name=u"", base=None): """If a local webroot directory is configured, replace absolute URLs with it. After that queue the URL data for checking.""" webroot = self.aggregate.config["localwebroot"] if webroot and url and url.startswith(u"/"): url = webroot + url[1:] log.debug(LOG_CHECK, "Applied local webroot `%s' to `%s'.", webroot, url) - super(FileUrl, self).add_url(url, line=line, column=column, name=name, base=base) + super(FileUrl, self).add_url(url, line=line, column=column, page=page, name=name, base=base)