Update various comments to https

This commit is contained in:
Chris Mayo 2020-06-05 16:59:46 +01:00
parent 3bd790c22d
commit 36246c15ac
4 changed files with 10 additions and 10 deletions

View file

@ -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

View file

@ -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(

View file

@ -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

View file

@ -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'