From a39f635b82bf647896bb4af2d4965ccc70fc4e75 Mon Sep 17 00:00:00 2001 From: calvin Date: Wed, 4 May 2005 10:48:10 +0000 Subject: [PATCH] use some %r in warning strings git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2554 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/checker/urlbase.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/linkcheck/checker/urlbase.py b/linkcheck/checker/urlbase.py index 9c2b9c77..8527b5a4 100644 --- a/linkcheck/checker/urlbase.py +++ b/linkcheck/checker/urlbase.py @@ -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: