summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2018-07-18 17:54:15 +0200
committerTim Graham <timograham@gmail.com>2018-07-18 11:54:15 -0400
commita73cf8110e6cccbf46bf77fd4ddce2df99df53ca (patch)
tree1403b374e47a80000eef37bc4c43c2c412cb5e97 /django
parent6e78e1054933c36a2e0fdf998db780c88bdef4a9 (diff)
Removed duplicate words in various comments.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/gis/db/backends/base/features.py2
-rw-r--r--django/contrib/messages/storage/fallback.py2
-rw-r--r--django/core/management/__init__.py4
-rw-r--r--django/db/models/sql/query.py4
-rw-r--r--django/test/testcases.py2
-rw-r--r--django/utils/tree.py2
6 files changed, 8 insertions, 8 deletions
diff --git a/django/contrib/gis/db/backends/base/features.py b/django/contrib/gis/db/backends/base/features.py
index 91d0020ce8..66c024e606 100644
--- a/django/contrib/gis/db/backends/base/features.py
+++ b/django/contrib/gis/db/backends/base/features.py
@@ -27,7 +27,7 @@ class BaseSpatialFeatures:
supports_null_geometries = True
# Are empty geometries supported?
supports_empty_geometries = False
- # Can the the function be applied on geodetic coordinate systems?
+ # Can the function be applied on geodetic coordinate systems?
supports_distance_geodetic = True
supports_length_geodetic = True
supports_perimeter_geodetic = False
diff --git a/django/contrib/messages/storage/fallback.py b/django/contrib/messages/storage/fallback.py
index 97f82d7654..39df6f3c9d 100644
--- a/django/contrib/messages/storage/fallback.py
+++ b/django/contrib/messages/storage/fallback.py
@@ -6,7 +6,7 @@ from django.contrib.messages.storage.session import SessionStorage
class FallbackStorage(BaseStorage):
"""
Try to store all messages in the first backend. Store any unstored
- messages in each subsequent backend backend.
+ messages in each subsequent backend.
"""
storage_classes = (CookieStorage, SessionStorage)
diff --git a/django/core/management/__init__.py b/django/core/management/__init__.py
index bffa3d666a..b4c28b3e62 100644
--- a/django/core/management/__init__.py
+++ b/django/core/management/__init__.py
@@ -118,8 +118,8 @@ def call_command(command_name, *args, **options):
}
arg_options = {opt_mapping.get(key, key): value for key, value in options.items()}
parse_args = [str(a) for a in args]
- # Any required arguments which are passed in via **options must must be
- # passed to parse_args().
+ # Any required arguments which are passed in via **options must be passed
+ # to parse_args().
parse_args += [
'{}={}'.format(min(opt.option_strings), arg_options[opt.dest])
for opt in parser._actions if opt.required and opt.dest in options
diff --git a/django/db/models/sql/query.py b/django/db/models/sql/query.py
index 2a3510f992..f5f26b9426 100644
--- a/django/db/models/sql/query.py
+++ b/django/db/models/sql/query.py
@@ -1484,8 +1484,8 @@ class Query:
joins = [alias]
# The transform can't be applied yet, as joins must be trimmed later.
# To avoid making every caller of this method look up transforms
- # directly, compute transforms here and and create a partial that
- # converts fields to the appropriate wrapped version.
+ # directly, compute transforms here and create a partial that converts
+ # fields to the appropriate wrapped version.
def final_transformer(field, alias):
return field.get_col(alias)
diff --git a/django/test/testcases.py b/django/test/testcases.py
index 488b8e2cd7..7aec0b406b 100644
--- a/django/test/testcases.py
+++ b/django/test/testcases.py
@@ -626,7 +626,7 @@ class SimpleTestCase(unittest.TestCase):
def assertRaisesMessage(self, expected_exception, expected_message, *args, **kwargs):
"""
- Assert that expected_message is found in the the message of a raised
+ Assert that expected_message is found in the message of a raised
exception.
Args:
diff --git a/django/utils/tree.py b/django/utils/tree.py
index b7f7b9798b..2a188acda7 100644
--- a/django/utils/tree.py
+++ b/django/utils/tree.py
@@ -52,7 +52,7 @@ class Node:
return obj
def __len__(self):
- """Return the the number of children this node has."""
+ """Return the number of children this node has."""
return len(self.children)
def __bool__(self):