Browse Source

Refs #29784 -- Normalized Python docs links to omit the version.

Jon Dufresne 6 years ago
parent
commit
ad9a28ee38

+ 2 - 2
django/conf/global_settings.py

@@ -304,12 +304,12 @@ DATA_UPLOAD_MAX_NUMBER_FIELDS = 1000
 FILE_UPLOAD_TEMP_DIR = None
 
 # The numeric mode to set newly-uploaded files to. The value should be a mode
-# you'd pass directly to os.chmod; see https://docs.python.org/3/library/os.html#files-and-directories.
+# you'd pass directly to os.chmod; see https://docs.python.org/library/os.html#files-and-directories.
 FILE_UPLOAD_PERMISSIONS = None
 
 # The numeric mode to assign to newly-created directories, when uploading files.
 # The value should be a mode as you'd pass to os.chmod;
-# see https://docs.python.org/3/library/os.html#files-and-directories.
+# see https://docs.python.org/library/os.html#files-and-directories.
 FILE_UPLOAD_DIRECTORY_PERMISSIONS = None
 
 # Python module path where user will place custom format definition.

+ 1 - 1
django/contrib/admin/models.py

@@ -54,7 +54,7 @@ class LogEntry(models.Model):
         blank=True, null=True,
     )
     object_id = models.TextField(_('object id'), blank=True, null=True)
-    # Translators: 'repr' means representation (https://docs.python.org/3/library/functions.html#repr)
+    # Translators: 'repr' means representation (https://docs.python.org/library/functions.html#repr)
     object_repr = models.CharField(_('object repr'), max_length=200)
     action_flag = models.PositiveSmallIntegerField(_('action flag'), choices=ACTION_FLAG_CHOICES)
     # change_message is either a string or a JSON structure

+ 1 - 1
django/contrib/gis/db/backends/postgis/const.py

@@ -27,7 +27,7 @@ GDAL_TO_STRUCT = [
 # Size of the packed value in bytes for different numerical types.
 # This is needed to cut chunks of band data out of PostGIS raster strings
 # when decomposing them into GDALRasters.
-# See https://docs.python.org/3/library/struct.html#format-characters
+# See https://docs.python.org/library/struct.html#format-characters
 STRUCT_SIZE = {
     'b': 1,  # Signed char
     'B': 1,  # Unsigned char

+ 1 - 1
django/http/response.py

@@ -238,7 +238,7 @@ class HttpResponseBase:
         return str(value).encode(self.charset)
 
     # These methods partially implement the file-like object interface.
-    # See https://docs.python.org/3/library/io.html#io.IOBase
+    # See https://docs.python.org/library/io.html#io.IOBase
 
     # The WSGI server must call this method upon completion of the request.
     # See http://blog.dscpl.com.au/2012/10/obligations-for-calling-close-on.html

+ 1 - 1
django/template/defaultfilters.py

@@ -225,7 +225,7 @@ def stringformat(value, arg):
     This specifier uses Python string formatting syntax, with the exception
     that the leading "%" is dropped.
 
-    See https://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting
+    See https://docs.python.org/library/stdtypes.html#printf-style-string-formatting
     for documentation of Python string formatting.
     """
     if isinstance(value, tuple):

+ 1 - 1
docs/ref/utils.txt

@@ -515,7 +515,7 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004
 
             __friends = cached_property(get_friends, name='_Person__friends')
 
-        __ https://docs.python.org/3/faq/programming.html#i-try-to-use-spam-and-i-get-an-error-about-someclassname-spam
+        __ https://docs.python.org/faq/programming.html#i-try-to-use-spam-and-i-get-an-error-about-someclassname-spam
 
 .. function:: keep_lazy(func, *resultclasses)
 

+ 1 - 1
docs/topics/db/queries.txt

@@ -1087,7 +1087,7 @@ For example, a ``Blog`` object ``b`` has access to a list of all related
 All examples in this section use the sample ``Blog``, ``Author`` and ``Entry``
 models defined at the top of this page.
 
-.. _descriptors: https://docs.python.org/3/howto/descriptor.html
+.. _descriptors: https://docs.python.org/howto/descriptor.html
 
 One-to-many relationships
 -------------------------

+ 1 - 1
tests/test_runner_apps/sample/doctests.py

@@ -1,6 +1,6 @@
 """
 Doctest example from the official Python documentation.
-https://docs.python.org/3/library/doctest.html
+https://docs.python.org/library/doctest.html
 """