mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-01 11:34:41 +00:00
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:
parent
856ff8ef2a
commit
c84a33c7ce
1 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue