syntax fix

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2988 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-12-18 09:13:23 +00:00
parent 856ff8ef2a
commit c84a33c7ce

View file

@ -304,9 +304,9 @@ class HttpUrl (internpaturl.InternPatternUrl, proxysupport.ProxySupport):
self.headers.getheader("Uri", ""))
# make new url absolute and unicode
newurl = urlparse.urljoin(redirected, newurl)
newurl = assert linkcheck.strformat.unicode_safe(newurl)
linkcheck.log.debug(linkcheck.LOG_CHECK, "Redirected to %r",
newurl)
newurl = linkcheck.strformat.unicode_safe(newurl)
assert linkcheck.log.debug(linkcheck.LOG_CHECK,
"Redirected to %r", newurl)
self.add_info(_("Redirected to %(url)s.") % {'url': newurl},
tag="http-redirect")
redirected, is_idn = linkcheck.url.url_norm(newurl)