From dca52145d3732802caed0121a99fcac9cff24e81 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 24 Oct 2012 22:59:28 +0200 Subject: [PATCH] Misc stuff. --- linkcheck/checker/urlbase.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/linkcheck/checker/urlbase.py b/linkcheck/checker/urlbase.py index 716ae3c8..44a5ca59 100644 --- a/linkcheck/checker/urlbase.py +++ b/linkcheck/checker/urlbase.py @@ -333,7 +333,7 @@ class UrlBase (object): # do not copy anchor warnings, since the current anchor # might have changed if anchor_changed and tag == WARN_URL_ANCHOR_NOT_FOUND: - pass + continue self.add_warning(msg, tag=tag) for info in cache_data["info"]: self.add_info(info) @@ -699,7 +699,7 @@ class UrlBase (object): anchornames = sorted(set(u"`%s'" % x[0] for x in self.anchors)) anchors = u", ".join(anchornames) else: - anchors = u"none" + anchors = u"-" args = {"name": self.anchor, "anchors": anchors} msg = u"%s %s" % (_("Anchor `%(name)s' not found.") % args, _("Available anchors: %(anchors)s.") % args) @@ -1152,6 +1152,8 @@ class UrlBase (object): u"column=%d" % self.column, u"name=%r" % self.name, u"anchor=%r" % self.anchor, + u"cached=%s" % self.cached, + u"cache_key=%s" % self.cache_url_key, ]) def get_intern_pattern (self, url=None):