mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-03-27 03:00:36 +00:00
use some %r in warning strings
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2554 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
b8dc6178e3
commit
a39f635b82
1 changed files with 4 additions and 4 deletions
|
|
@ -274,7 +274,7 @@ class UrlBase (object):
|
|||
# check url warnings
|
||||
effectiveurl = urlparse.urlunsplit(self.urlparts)
|
||||
if self.url != effectiveurl:
|
||||
self.add_warning(_("Effective URL %s.") % effectiveurl)
|
||||
self.add_warning(_("Effective URL %r.") % effectiveurl)
|
||||
self.url = effectiveurl
|
||||
except linkcheck.LinkCheckerError, msg:
|
||||
self.set_result(linkcheck.strformat.unicode_safe(msg),
|
||||
|
|
@ -292,12 +292,12 @@ class UrlBase (object):
|
|||
# norm base url
|
||||
base_url, is_idn = linkcheck.url.url_norm(self.base_url)
|
||||
if is_idn:
|
||||
self.add_warning(_("""URL %s has a unicode domain name which
|
||||
self.add_warning(_("""URL %r has a unicode domain name which
|
||||
is not yet widely supported. You should use
|
||||
the URL %s instead.""") % (self.base_url, base_url))
|
||||
the URL %r instead.""") % (self.base_url, base_url))
|
||||
elif self.base_url != base_url:
|
||||
self.add_warning(
|
||||
_("Base URL is not properly normed. Normed url is %(url)s.") % \
|
||||
_("Base URL is not properly normed. Normed url is %(url)r.") % \
|
||||
{'url': base_url})
|
||||
# make url absolute
|
||||
if self.base_ref:
|
||||
|
|
|
|||
Loading…
Reference in a new issue