Fixed #11066 -- Corrected 15 duplicate "the"s found in docs and code comments. Thanks kaikuehne.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10801 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
92e5249a67
commit
50745cc31e
|
@ -59,7 +59,7 @@ class CsrfMiddlewareTest(TestCase):
|
||||||
# Check the post processing
|
# Check the post processing
|
||||||
def test_process_response_no_session(self):
|
def test_process_response_no_session(self):
|
||||||
"""
|
"""
|
||||||
Check the the post-processor does nothing if no session active
|
Check the post-processor does nothing if no session active
|
||||||
"""
|
"""
|
||||||
req = self._get_GET_no_session_request()
|
req = self._get_GET_no_session_request()
|
||||||
resp = self._get_post_form_response()
|
resp = self._get_post_form_response()
|
||||||
|
|
|
@ -15,7 +15,7 @@ def create_test_spatial_db(verbosity=1, autoclobber=False, interactive=False):
|
||||||
if settings.DATABASE_ENGINE != 'sqlite3':
|
if settings.DATABASE_ENGINE != 'sqlite3':
|
||||||
raise Exception('SpatiaLite database creation only supported on sqlite3 platform.')
|
raise Exception('SpatiaLite database creation only supported on sqlite3 platform.')
|
||||||
|
|
||||||
# Getting the test database name using the the SQLite backend's
|
# Getting the test database name using the SQLite backend's
|
||||||
# `_create_test_db`. Unless `TEST_DATABASE_NAME` is defined,
|
# `_create_test_db`. Unless `TEST_DATABASE_NAME` is defined,
|
||||||
# it returns ":memory:".
|
# it returns ":memory:".
|
||||||
db_name = connection.creation._create_test_db(verbosity, autoclobber)
|
db_name = connection.creation._create_test_db(verbosity, autoclobber)
|
||||||
|
|
|
@ -30,7 +30,7 @@ elif os.name == 'posix':
|
||||||
else:
|
else:
|
||||||
raise ImportError('Unsupported OS "%s"' % os.name)
|
raise ImportError('Unsupported OS "%s"' % os.name)
|
||||||
|
|
||||||
# Using the ctypes `find_library` utility to find the the path to the GEOS
|
# Using the ctypes `find_library` utility to find the path to the GEOS
|
||||||
# shared library. This is better than manually specifiying each library name
|
# shared library. This is better than manually specifiying each library name
|
||||||
# and extension (e.g., libgeos_c.[so|so.1|dylib].).
|
# and extension (e.g., libgeos_c.[so|so.1|dylib].).
|
||||||
if lib_names:
|
if lib_names:
|
||||||
|
|
|
@ -41,7 +41,7 @@ from decimal import Decimal
|
||||||
class MeasureBase(object):
|
class MeasureBase(object):
|
||||||
def default_units(self, kwargs):
|
def default_units(self, kwargs):
|
||||||
"""
|
"""
|
||||||
Return the unit value and the the default units specified
|
Return the unit value and the default units specified
|
||||||
from the given keyword arguments dictionary.
|
from the given keyword arguments dictionary.
|
||||||
"""
|
"""
|
||||||
val = 0.0
|
val = 0.0
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</style>
|
</style>
|
||||||
<!--[if IE]>
|
<!--[if IE]>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
/* This fixes the the mouse offset issues in IE. */
|
/* This fixes the mouse offset issues in IE. */
|
||||||
#{{ id }}_admin_map { position: static; vertical-align: top; }
|
#{{ id }}_admin_map { position: static; vertical-align: top; }
|
||||||
/* `font-size: 0` fixes the 1px border between tiles, but borks LayerSwitcher.
|
/* `font-size: 0` fixes the 1px border between tiles, but borks LayerSwitcher.
|
||||||
Thus, this is disabled until a better fix is found.
|
Thus, this is disabled until a better fix is found.
|
||||||
|
|
|
@ -152,7 +152,7 @@ class MemoryFileUploadHandler(FileUploadHandler):
|
||||||
Use the content_length to signal whether or not this handler should be in use.
|
Use the content_length to signal whether or not this handler should be in use.
|
||||||
"""
|
"""
|
||||||
# Check the content-length header to see if we should
|
# Check the content-length header to see if we should
|
||||||
# If the the post is too large, we cannot use the Memory handler.
|
# If the post is too large, we cannot use the Memory handler.
|
||||||
if content_length > settings.FILE_UPLOAD_MAX_MEMORY_SIZE:
|
if content_length > settings.FILE_UPLOAD_MAX_MEMORY_SIZE:
|
||||||
self.activated = False
|
self.activated = False
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -1136,7 +1136,7 @@ def widthratio(parser, token):
|
||||||
|
|
||||||
<img src='bar.gif' height='10' width='{% widthratio this_value max_value 100 %}' />
|
<img src='bar.gif' height='10' width='{% widthratio this_value max_value 100 %}' />
|
||||||
|
|
||||||
Above, if ``this_value`` is 175 and ``max_value`` is 200, the the image in
|
Above, if ``this_value`` is 175 and ``max_value`` is 200, the image in
|
||||||
the above example will be 88 pixels wide (because 175/200 = .875;
|
the above example will be 88 pixels wide (because 175/200 = .875;
|
||||||
.875 * 100 = 87.5 which is rounded up to 88).
|
.875 * 100 = 87.5 which is rounded up to 88).
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# This is a slightly modified version of the doctest.py that shipped with Python 2.4
|
# This is a slightly modified version of the doctest.py that shipped with Python 2.4
|
||||||
# It incorporates changes that have been submitted the the Python ticket tracker
|
# It incorporates changes that have been submitted to the Python ticket tracker
|
||||||
# as ticket #1521051. These changes allow for a DoctestRunner and Doctest base
|
# as ticket #1521051. These changes allow for a DoctestRunner and Doctest base
|
||||||
# class to be specified when constructing a DoctestSuite.
|
# class to be specified when constructing a DoctestSuite.
|
||||||
|
|
||||||
|
|
|
@ -121,7 +121,7 @@ class SyndicationFeed(object):
|
||||||
|
|
||||||
def add_root_elements(self, handler):
|
def add_root_elements(self, handler):
|
||||||
"""
|
"""
|
||||||
Add elements in the the root (i.e. feed/channel) element. Called
|
Add elements in the root (i.e. feed/channel) element. Called
|
||||||
from write().
|
from write().
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
|
@ -71,7 +71,7 @@ def redirect(post_save_redirect, obj):
|
||||||
def lookup_object(model, object_id, slug, slug_field):
|
def lookup_object(model, object_id, slug, slug_field):
|
||||||
"""
|
"""
|
||||||
Return the ``model`` object with the passed ``object_id``. If
|
Return the ``model`` object with the passed ``object_id``. If
|
||||||
``object_id`` is None, then return the the object whose ``slug_field``
|
``object_id`` is None, then return the object whose ``slug_field``
|
||||||
equals the passed ``slug``. If ``slug`` and ``slug_field`` are not passed,
|
equals the passed ``slug``. If ``slug`` and ``slug_field`` are not passed,
|
||||||
then raise Http404 exception.
|
then raise Http404 exception.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -325,7 +325,7 @@ A ticket can be resolved in a number of ways:
|
||||||
tickets, we keep all the discussion in one place, which helps everyone.
|
tickets, we keep all the discussion in one place, which helps everyone.
|
||||||
|
|
||||||
"worksforme"
|
"worksforme"
|
||||||
Used when the the ticket doesn't contain enough detail to replicate
|
Used when the ticket doesn't contain enough detail to replicate
|
||||||
the original bug.
|
the original bug.
|
||||||
|
|
||||||
If you believe that the ticket was closed in error -- because you're
|
If you believe that the ticket was closed in error -- because you're
|
||||||
|
|
|
@ -22,7 +22,7 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
|
||||||
.. class:: ModelBackend
|
.. class:: ModelBackend
|
||||||
|
|
||||||
This is the default authentication backend used by Django. It
|
This is the default authentication backend used by Django. It
|
||||||
authenticates using usernames and passwords stored in the the
|
authenticates using usernames and passwords stored in the
|
||||||
:class:`~django.contrib.auth.models.User` model.
|
:class:`~django.contrib.auth.models.User` model.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -200,7 +200,7 @@ Actions that provide intermediate pages
|
||||||
---------------------------------------
|
---------------------------------------
|
||||||
|
|
||||||
By default, after an action is performed the user is simply redirected back
|
By default, after an action is performed the user is simply redirected back
|
||||||
the the original change list page. However, some actions, especially more
|
to the original change list page. However, some actions, especially more
|
||||||
complex ones, will need to return intermediate pages. For example, the
|
complex ones, will need to return intermediate pages. For example, the
|
||||||
built-in delete action asks for confirmation before deleting the selected
|
built-in delete action asks for confirmation before deleting the selected
|
||||||
objects.
|
objects.
|
||||||
|
|
|
@ -55,7 +55,7 @@ Http404: No Article matches the given query.
|
||||||
>>> get_object_or_404(Article, title__contains="Run")
|
>>> get_object_or_404(Article, title__contains="Run")
|
||||||
<Article: Run away!>
|
<Article: Run away!>
|
||||||
|
|
||||||
# We can also use the the Article manager through an Author object.
|
# We can also use the Article manager through an Author object.
|
||||||
>>> get_object_or_404(a.article_set, title__contains="Run")
|
>>> get_object_or_404(a.article_set, title__contains="Run")
|
||||||
<Article: Run away!>
|
<Article: Run away!>
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,7 @@ def create_egg(name, resources):
|
||||||
Creates a mock egg with a list of resources.
|
Creates a mock egg with a list of resources.
|
||||||
|
|
||||||
name: The name of the module.
|
name: The name of the module.
|
||||||
resources: A dictionary of resources. Keys are the names and values the the data.
|
resources: A dictionary of resources. Keys are the names and values the data.
|
||||||
"""
|
"""
|
||||||
egg = imp.new_module(name)
|
egg = imp.new_module(name)
|
||||||
egg.__loader__ = MockLoader()
|
egg.__loader__ = MockLoader()
|
||||||
|
|
Loading…
Reference in New Issue