diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-09-25 23:48:47 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-10-09 20:52:43 -0400 |
| commit | 6cb5285f29247b877e47f256d84bf6313db7b484 (patch) | |
| tree | 1984e0e1c5976e3d89ea8e50bf46363399450555 /django/utils | |
| parent | ec0803b1be161afe4db41d152fe6ed11eb6ff69c (diff) | |
[2.1.x] Refs #29784 -- Switched to https:// links where available.
Backport of 82f286cf6f198d37850d3c5df637b5665566a66b from master.
Diffstat (limited to 'django/utils')
| -rw-r--r-- | django/utils/autoreload.py | 4 | ||||
| -rw-r--r-- | django/utils/decorators.py | 2 | ||||
| -rw-r--r-- | django/utils/feedgenerator.py | 6 | ||||
| -rw-r--r-- | django/utils/html.py | 4 | ||||
| -rw-r--r-- | django/utils/module_loading.py | 2 | ||||
| -rw-r--r-- | django/utils/timesince.py | 2 | ||||
| -rw-r--r-- | django/utils/timezone.py | 4 | ||||
| -rw-r--r-- | django/utils/xmlutils.py | 2 |
8 files changed, 13 insertions, 13 deletions
diff --git a/django/utils/autoreload.py b/django/utils/autoreload.py index 7e83a7fd8c..abee72e485 100644 --- a/django/utils/autoreload.py +++ b/django/utils/autoreload.py @@ -1,5 +1,5 @@ # Autoreloading launcher. -# Borrowed from Peter Hunt and the CherryPy project (http://www.cherrypy.org). +# Borrowed from Peter Hunt and the CherryPy project (https://cherrypy.org/). # Some taken from Ian Bicking's Paste (http://pythonpaste.org/). # # Portions copyright (c) 2004, CherryPy Team (team@cherrypy.org) @@ -42,7 +42,7 @@ from django.conf import settings from django.core.signals import request_finished # This import does nothing, but it's necessary to avoid some race conditions -# in the threading module. See http://code.djangoproject.com/ticket/2330 . +# in the threading module. See https://code.djangoproject.com/ticket/2330 . try: import threading # NOQA except ImportError: diff --git a/django/utils/decorators.py b/django/utils/decorators.py index 9f8b041e4b..f5f3be2f16 100644 --- a/django/utils/decorators.py +++ b/django/utils/decorators.py @@ -117,7 +117,7 @@ def decorator_from_middleware(middleware_class): def available_attrs(fn): """ Return the list of functools-wrappable attributes on a callable. - This was required as a workaround for http://bugs.python.org/issue3445 + This was required as a workaround for https://bugs.python.org/issue3445 under Python 2. """ return WRAPPER_ASSIGNMENTS diff --git a/django/utils/feedgenerator.py b/django/utils/feedgenerator.py index e49f534a19..dd26f24d77 100644 --- a/django/utils/feedgenerator.py +++ b/django/utils/feedgenerator.py @@ -19,7 +19,7 @@ Sample usage: ... feed.write(fp, 'utf-8') For definitions of the different versions of RSS, see: -http://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004/02/04/incompatible-rss +https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004/02/04/incompatible-rss """ import datetime import email @@ -48,7 +48,7 @@ def get_tag_uri(url, date): """ Create a TagURI. - See http://web.archive.org/web/20110514113830/http://diveintomark.org/archives/2004/05/28/howto-atom-id + See https://web.archive.org/web/20110514113830/http://diveintomark.org/archives/2004/05/28/howto-atom-id """ bits = urlparse(url) d = '' @@ -239,7 +239,7 @@ class RssUserland091Feed(RssFeed): class Rss201rev2Feed(RssFeed): - # Spec: http://blogs.law.harvard.edu/tech/rss + # Spec: https://cyber.harvard.edu/rss/rss.html _version = "2.0" def add_item_elements(self, handler, item): diff --git a/django/utils/html.py b/django/utils/html.py index c5035e3b23..5dd67fd151 100644 --- a/django/utils/html.py +++ b/django/utils/html.py @@ -204,8 +204,8 @@ def smart_urlquote(url): def unquote_quote(segment): segment = unquote(segment) # Tilde is part of RFC3986 Unreserved Characters - # http://tools.ietf.org/html/rfc3986#section-2.3 - # See also http://bugs.python.org/issue16285 + # https://tools.ietf.org/html/rfc3986#section-2.3 + # See also https://bugs.python.org/issue16285 return quote(segment, safe=RFC3986_SUBDELIMS + RFC3986_GENDELIMS + '~') # Handle IDN before quoting. diff --git a/django/utils/module_loading.py b/django/utils/module_loading.py index 413c6c2540..38119431fa 100644 --- a/django/utils/module_loading.py +++ b/django/utils/module_loading.py @@ -76,7 +76,7 @@ def module_has_submodule(package, module_name): # When module_name is an invalid dotted path, Python raises ImportError # (or ModuleNotFoundError in Python 3.6+). AttributeError may be raised # if the penultimate part of the path is not a package. - # (http://bugs.python.org/issue30436) + # (https://bugs.python.org/issue30436) return False diff --git a/django/utils/timesince.py b/django/utils/timesince.py index 139fca28a1..23bb5c6da9 100644 --- a/django/utils/timesince.py +++ b/django/utils/timesince.py @@ -39,7 +39,7 @@ def timesince(d, now=None, reversed=False, time_strings=None): TIME_STRINGS dict. Adapted from - http://web.archive.org/web/20060617175230/http://blog.natbat.co.uk/archive/2003/Jun/14/time_since + https://web.archive.org/web/20060617175230/http://blog.natbat.co.uk/archive/2003/Jun/14/time_since """ if time_strings is None: time_strings = TIME_STRINGS diff --git a/django/utils/timezone.py b/django/utils/timezone.py index c1f0d70bc1..26c59db535 100644 --- a/django/utils/timezone.py +++ b/django/utils/timezone.py @@ -234,7 +234,7 @@ def is_aware(value): Determine if a given datetime.datetime is aware. The concept is defined in Python's docs: - http://docs.python.org/library/datetime.html#datetime.tzinfo + https://docs.python.org/library/datetime.html#datetime.tzinfo Assuming value.tzinfo is either None or a proper datetime.tzinfo, value.utcoffset() implements the appropriate logic. @@ -247,7 +247,7 @@ def is_naive(value): Determine if a given datetime.datetime is naive. The concept is defined in Python's docs: - http://docs.python.org/library/datetime.html#datetime.tzinfo + https://docs.python.org/library/datetime.html#datetime.tzinfo Assuming value.tzinfo is either None or a proper datetime.tzinfo, value.utcoffset() implements the appropriate logic. diff --git a/django/utils/xmlutils.py b/django/utils/xmlutils.py index 6b62a1fe74..1a14034243 100644 --- a/django/utils/xmlutils.py +++ b/django/utils/xmlutils.py @@ -24,7 +24,7 @@ class SimplerXMLGenerator(XMLGenerator): def characters(self, content): if content and re.search(r'[\x00-\x08\x0B-\x0C\x0E-\x1F]', content): # Fail loudly when content has control chars (unsupported in XML 1.0) - # See http://www.w3.org/International/questions/qa-controls + # See https://www.w3.org/International/questions/qa-controls raise UnserializableContentError("Control characters are not supported in XML 1.0") XMLGenerator.characters(self, content) |
