1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Removed duplicate words in various comments.

This commit is contained in:
Mariusz Felisiak 2018-07-18 17:54:15 +02:00 committed by Tim Graham
parent 6e78e10549
commit a73cf8110e
6 changed files with 8 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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