Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 50745cc31ecd0ff76dafed2fb903d14c1b30d707 1 parent 92e5249
Karen Tracey authored May 17, 2009
2  django/contrib/csrf/tests.py
@@ -59,7 +59,7 @@ def get_view(self):
59 59
     # Check the post processing
60 60
     def test_process_response_no_session(self):
61 61
         """
62  
-        Check the the post-processor does nothing if no session active
  62
+        Check the post-processor does nothing if no session active
63 63
         """
64 64
         req = self._get_GET_no_session_request()
65 65
         resp = self._get_post_form_response()
2  django/contrib/gis/db/backend/spatialite/creation.py
@@ -15,7 +15,7 @@ def create_test_spatial_db(verbosity=1, autoclobber=False, interactive=False):
15 15
     if settings.DATABASE_ENGINE != 'sqlite3':
16 16
         raise Exception('SpatiaLite database creation only supported on sqlite3 platform.')
17 17
 
18  
-    # Getting the test database name using the the SQLite backend's
  18
+    # Getting the test database name using the SQLite backend's
19 19
     # `_create_test_db`.  Unless `TEST_DATABASE_NAME` is defined,
20 20
     # it returns ":memory:".
21 21
     db_name = connection.creation._create_test_db(verbosity, autoclobber)
2  django/contrib/gis/geos/libgeos.py
@@ -30,7 +30,7 @@
30 30
 else:
31 31
     raise ImportError('Unsupported OS "%s"' % os.name)
32 32
 
33  
-# Using the ctypes `find_library` utility to find the the path to the GEOS
  33
+# Using the ctypes `find_library` utility to find the path to the GEOS
34 34
 # shared library.  This is better than manually specifiying each library name
35 35
 # and extension (e.g., libgeos_c.[so|so.1|dylib].).
36 36
 if lib_names:
2  django/contrib/gis/measure.py
@@ -41,7 +41,7 @@
41 41
 class MeasureBase(object):
42 42
     def default_units(self, kwargs):
43 43
         """
44  
-        Return the unit value and the the default units specified
  44
+        Return the unit value and the default units specified
45 45
         from the given keyword arguments dictionary.
46 46
         """
47 47
         val = 0.0
2  django/contrib/gis/templates/gis/admin/openlayers.html
@@ -15,7 +15,7 @@
15 15
 </style>
16 16
 <!--[if IE]>
17 17
 <style type="text/css">
18  
-  /* This fixes the the mouse offset issues in IE. */
  18
+  /* This fixes the mouse offset issues in IE. */
19 19
   #{{ id }}_admin_map { position: static; vertical-align: top; }
20 20
   /* `font-size: 0` fixes the 1px border between tiles, but borks LayerSwitcher.
21 21
       Thus, this is disabled until a better fix is found.
2  django/core/files/uploadhandler.py
@@ -152,7 +152,7 @@ def handle_raw_input(self, input_data, META, content_length, boundary, encoding=
152 152
         Use the content_length to signal whether or not this handler should be in use.
153 153
         """
154 154
         # Check the content-length header to see if we should
155  
-        # If the the post is too large, we cannot use the Memory handler.
  155
+        # If the post is too large, we cannot use the Memory handler.
156 156
         if content_length > settings.FILE_UPLOAD_MAX_MEMORY_SIZE:
157 157
             self.activated = False
158 158
         else:
2  django/template/defaulttags.py
@@ -1136,7 +1136,7 @@ def widthratio(parser, token):
1136 1136
 
1137 1137
         <img src='bar.gif' height='10' width='{% widthratio this_value max_value 100 %}' />
1138 1138
 
1139  
-    Above, if ``this_value`` is 175 and ``max_value`` is 200, the the image in
  1139
+    Above, if ``this_value`` is 175 and ``max_value`` is 200, the image in
1140 1140
     the above example will be 88 pixels wide (because 175/200 = .875;
1141 1141
     .875 * 100 = 87.5 which is rounded up to 88).
1142 1142
     """
2  django/test/_doctest.py
... ...
@@ -1,5 +1,5 @@
1 1
 # This is a slightly modified version of the doctest.py that shipped with Python 2.4
2  
-# It incorporates changes that have been submitted the the Python ticket tracker
  2
+# It incorporates changes that have been submitted to the Python ticket tracker
3 3
 # as ticket #1521051. These changes allow for a DoctestRunner and Doctest base
4 4
 # class to be specified when constructing a DoctestSuite.
5 5
 
2  django/utils/feedgenerator.py
@@ -121,7 +121,7 @@ def root_attributes(self):
121 121
 
122 122
     def add_root_elements(self, handler):
123 123
         """
124  
-        Add elements in the the root (i.e. feed/channel) element. Called
  124
+        Add elements in the root (i.e. feed/channel) element. Called
125 125
         from write().
126 126
         """
127 127
         pass
2  django/views/generic/create_update.py
@@ -71,7 +71,7 @@ def redirect(post_save_redirect, obj):
71 71
 def lookup_object(model, object_id, slug, slug_field):
72 72
     """
73 73
     Return the ``model`` object with the passed ``object_id``.  If
74  
-    ``object_id`` is None, then return the the object whose ``slug_field``
  74
+    ``object_id`` is None, then return the object whose ``slug_field``
75 75
     equals the passed ``slug``.  If ``slug`` and ``slug_field`` are not passed,
76 76
     then raise Http404 exception.
77 77
     """
2  docs/internals/contributing.txt
@@ -325,7 +325,7 @@ A ticket can be resolved in a number of ways:
325 325
         tickets, we keep all the discussion in one place, which helps everyone.
326 326
 
327 327
     "worksforme"
328  
-        Used when the the ticket doesn't contain enough detail to replicate
  328
+        Used when the ticket doesn't contain enough detail to replicate
329 329
         the original bug.
330 330
 
331 331
 If you believe that the ticket was closed in error -- because you're
2  docs/ref/authbackends.txt
@@ -22,7 +22,7 @@ The following backends are available in :mod:`django.contrib.auth.backends`:
22 22
 .. class:: ModelBackend
23 23
 
24 24
     This is the default authentication backend used by Django.  It
25  
-    authenticates using usernames and passwords stored in the the
  25
+    authenticates using usernames and passwords stored in the
26 26
     :class:`~django.contrib.auth.models.User` model.
27 27
 
28 28
 
2  docs/ref/contrib/admin/actions.txt
@@ -200,7 +200,7 @@ Actions that provide intermediate pages
200 200
 ---------------------------------------
201 201
 
202 202
 By default, after an action is performed the user is simply redirected back
203  
-the the original change list page. However, some actions, especially more
  203
+to the original change list page. However, some actions, especially more
204 204
 complex ones, will need to return intermediate pages. For example, the
205 205
 built-in delete action asks for confirmation before deleting the selected
206 206
 objects.
2  tests/modeltests/get_object_or_404/models.py
@@ -55,7 +55,7 @@ def __unicode__(self):
55 55
 >>> get_object_or_404(Article, title__contains="Run")
56 56
 <Article: Run away!>
57 57
 
58  
-# We can also use the the Article manager through an Author object.
  58
+# We can also use the Article manager through an Author object.
59 59
 >>> get_object_or_404(a.article_set, title__contains="Run")
60 60
 <Article: Run away!>
61 61
 
2  tests/regressiontests/templates/loaders.py
@@ -45,7 +45,7 @@ def create_egg(name, resources):
45 45
     Creates a mock egg with a list of resources.
46 46
 
47 47
     name: The name of the module.
48  
-    resources: A dictionary of resources. Keys are the names and values the the data.
  48
+    resources: A dictionary of resources. Keys are the names and values the data.
49 49
     """
50 50
     egg = imp.new_module(name)
51 51
     egg.__loader__ = MockLoader()

0 notes on commit 50745cc

Please sign in to comment.
Something went wrong with that request. Please try again.