mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-29 02:24:43 +00:00
Remove warning about Unicode domains which are more widely supported now.
This commit is contained in:
parent
e48acc08af
commit
01184784ef
4 changed files with 1 additions and 13 deletions
|
|
@ -73,7 +73,6 @@ ExcList = ExcCacheList + ExcNoCacheList
|
|||
|
||||
WARN_URL_EFFECTIVE_URL = "url-effective-url"
|
||||
WARN_URL_ERROR_GETTING_CONTENT = "url-error-getting-content"
|
||||
WARN_URL_UNICODE_DOMAIN = "url-unicode-domain"
|
||||
WARN_URL_ANCHOR_NOT_FOUND = "url-anchor-not-found"
|
||||
WARN_URL_WARNREGEX_FOUND = "url-warnregex-found"
|
||||
WARN_URL_CONTENT_SIZE_TOO_LARGE = "url-content-too-large"
|
||||
|
|
@ -104,7 +103,6 @@ Warnings = {
|
|||
_("The effective URL is different from the original."),
|
||||
WARN_URL_ERROR_GETTING_CONTENT:
|
||||
_("Could not get the content of the URL."),
|
||||
WARN_URL_UNICODE_DOMAIN: _("URL uses a unicode domain."),
|
||||
WARN_URL_ANCHOR_NOT_FOUND: _("URL anchor was not found."),
|
||||
WARN_URL_WARNREGEX_FOUND:
|
||||
_("The warning regular expression was found in the URL contents."),
|
||||
|
|
|
|||
|
|
@ -300,8 +300,6 @@ class HttpUrl (internpaturl.InternPatternUrl, proxysupport.ProxySupport):
|
|||
self.add_info(_("Redirected to `%(url)s'.") % {'url': newurl})
|
||||
# norm base url - can raise UnicodeError from url.idna_encode()
|
||||
redirected, is_idn = urlbase.url_norm(newurl)
|
||||
if is_idn:
|
||||
pass # XXX warn about idn use
|
||||
log.debug(LOG_CHECK, "Norm redirected to %r", redirected)
|
||||
urlparts = strformat.url_unicode_split(redirected)
|
||||
if urlparts[1] != self.urlparts[1]:
|
||||
|
|
|
|||
|
|
@ -40,8 +40,6 @@ class InternPatternUrl (urlbase.UrlBase):
|
|||
scheme = parts[0]
|
||||
domain = parts[1]
|
||||
domain, is_idn = urlutil.idna_encode(domain)
|
||||
if is_idn:
|
||||
pass # XXX warn about idn use
|
||||
if not (domain and scheme):
|
||||
return None
|
||||
path = urlutil.splitparams(parts[2])[0]
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ from .. import (log, LOG_CHECK, LOG_CACHE, httputil, httplib2 as httplib,
|
|||
from ..HtmlParser import htmlsax
|
||||
from ..htmlutil import linkparse
|
||||
from ..network import iputil
|
||||
from .const import (WARN_URL_EFFECTIVE_URL, WARN_URL_UNICODE_DOMAIN,
|
||||
from .const import (WARN_URL_EFFECTIVE_URL,
|
||||
WARN_URL_ERROR_GETTING_CONTENT, WARN_URL_OBFUSCATED_IP,
|
||||
WARN_URL_ANCHOR_NOT_FOUND, WARN_URL_WARNREGEX_FOUND,
|
||||
WARN_URL_CONTENT_SIZE_TOO_LARGE, WARN_URL_CONTENT_SIZE_ZERO,
|
||||
|
|
@ -364,12 +364,6 @@ class UrlBase (object):
|
|||
"""
|
||||
# norm base url - can raise UnicodeError from url.idna_encode()
|
||||
base_url, is_idn = url_norm(self.base_url, self.encoding)
|
||||
if is_idn:
|
||||
self.add_warning(_("""URL %(url)r has a unicode domain name which
|
||||
is not yet widely supported. You should use
|
||||
the URL %(idna_url)r instead.""") % \
|
||||
{"url": self.base_url, "idna_url": base_url},
|
||||
tag=WARN_URL_UNICODE_DOMAIN)
|
||||
# make url absolute
|
||||
if self.base_ref:
|
||||
# use base reference as parent url
|
||||
|
|
|
|||
Loading…
Reference in a new issue