mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-27 23:33:59 +00:00
Update various comments to https
This commit is contained in:
parent
3bd790c22d
commit
36246c15ac
4 changed files with 10 additions and 10 deletions
|
|
@ -71,7 +71,7 @@ def get_os_filename(path):
|
|||
path = prepare_urlpath_for_nt(path)
|
||||
res = urllib.request.url2pathname(fileutil.path_safe(path))
|
||||
if os.name == 'nt' and res.endswith(':') and len(res) == 2:
|
||||
# Work around http://bugs.python.org/issue11474
|
||||
# Work around https://bugs.python.org/issue11474
|
||||
res += os.sep
|
||||
return res
|
||||
|
||||
|
|
|
|||
|
|
@ -137,20 +137,20 @@ class MailtoUrl(urlbase.UrlBase):
|
|||
def check_email_syntax(self, mail):
|
||||
"""Check email syntax. The relevant RFCs:
|
||||
- How to check names (memo):
|
||||
http://tools.ietf.org/html/rfc3696
|
||||
https://tools.ietf.org/html/rfc3696
|
||||
- Email address syntax
|
||||
http://tools.ietf.org/html/rfc2822
|
||||
https://tools.ietf.org/html/rfc2822
|
||||
- SMTP protocol
|
||||
http://tools.ietf.org/html/rfc5321#section-4.1.3
|
||||
https://tools.ietf.org/html/rfc5321#section-4.1.3
|
||||
- IPv6
|
||||
http://tools.ietf.org/html/rfc4291#section-2.2
|
||||
https://tools.ietf.org/html/rfc4291#section-2.2
|
||||
- Host syntax
|
||||
http://tools.ietf.org/html/rfc1123#section-2
|
||||
https://tools.ietf.org/html/rfc1123#section-2
|
||||
"""
|
||||
# length checks
|
||||
|
||||
# restrict email length to 256 characters
|
||||
# http://www.rfc-editor.org/errata_search.php?eid=1003
|
||||
# https://www.rfc-editor.org/errata_search.php?eid=1003
|
||||
if len(mail) > 256:
|
||||
self.set_result(
|
||||
_(
|
||||
|
|
@ -210,7 +210,7 @@ class MailtoUrl(urlbase.UrlBase):
|
|||
|
||||
# local part syntax check
|
||||
|
||||
# Rules taken from http://tools.ietf.org/html/rfc3696#section-3
|
||||
# Rules taken from https://tools.ietf.org/html/rfc3696#section-3
|
||||
if is_quoted(local):
|
||||
if is_missing_quote(local):
|
||||
self.set_result(
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
"""
|
||||
A DOT graph format logger. The specification has been taken from
|
||||
http://www.graphviz.org/doc/info/lang.html
|
||||
https://www.graphviz.org/doc/info/lang.html
|
||||
"""
|
||||
from .graph import _GraphLogger
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ HTML_TYPES = ('text/html', "application/xhtml+xml")
|
|||
|
||||
|
||||
class SitemapXmlLogger(xmllog._XMLLogger):
|
||||
"""Sitemap XML output according to http://www.sitemaps.org/protocol.html
|
||||
"""Sitemap XML output according to https://www.sitemaps.org/protocol.html
|
||||
"""
|
||||
|
||||
LoggerName = 'sitemap'
|
||||
|
|
|
|||
Loading…
Reference in a new issue