log country name as info

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2352 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-03-07 00:08:48 +00:00
parent 386ae6b43c
commit 0284f58359

View file

@ -321,6 +321,9 @@ class UrlBase (object):
raise linkcheck.LinkCheckerError, \
_("URL has invalid port %r") % str(self.port)
self.port = int(self.port)
country = self.consumer.get_country_name(self.host)
if country is not None:
self.add_info(_("URL is located in %s.") % _(country))
def check (self):
"""