Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #14559 -- corrected some typos and misleading docstrings. Thank…

…s to Gabriel Hurley for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14441 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 352deb09159b7a6c9d52077a378bf3faa071bce4 1 parent 4ba6348
Alex Gaynor authored November 02, 2010
10  django/dispatch/dispatcher.py
@@ -41,7 +41,7 @@ def connect(self, receiver, sender=None, weak=True, dispatch_uid=None):
41 41
                 A function or an instance method which is to receive signals.
42 42
                 Receivers must be hashable objects.
43 43
 
44  
-                if weak is True, then receiver must be weak-referencable (more
  44
+                If weak is True, then receiver must be weak-referencable (more
45 45
                 precisely saferef.safeRef() must be able to create a reference
46 46
                 to the receiver).
47 47
         
@@ -52,11 +52,11 @@ def connect(self, receiver, sender=None, weak=True, dispatch_uid=None):
52 52
                 dispatch_uid.
53 53
 
54 54
             sender
55  
-                The sender to which the receiver should respond Must either be
  55
+                The sender to which the receiver should respond. Must either be
56 56
                 of type Signal, or None to receive events from any sender.
57 57
 
58 58
             weak
59  
-                Whether to use weak references to the receiver By default, the
  59
+                Whether to use weak references to the receiver. By default, the
60 60
                 module will attempt to use weak references to the receiver
61 61
                 objects. If this parameter is false, then strong references will
62 62
                 be used.
@@ -170,7 +170,7 @@ def send_robust(self, sender, **named):
170 170
         Arguments:
171 171
         
172 172
             sender
173  
-                The sender of the signal Can be any python object (normally one
  173
+                The sender of the signal. Can be any python object (normally one
174 174
                 registered with a connect if you actually want something to
175 175
                 occur).
176 176
 
@@ -182,7 +182,7 @@ def send_robust(self, sender, **named):
182 182
         Return a list of tuple pairs [(receiver, response), ... ]. May raise
183 183
         DispatcherKeyError.
184 184
 
185  
-        if any receiver raises an error (specifically any subclass of
  185
+        If any receiver raises an error (specifically any subclass of
186 186
         Exception), the error instance is returned as the result for that
187 187
         receiver.
188 188
         """
2  django/middleware/common.py
@@ -90,7 +90,7 @@ def process_request(self, request):
90 90
         return http.HttpResponsePermanentRedirect(newurl)
91 91
 
92 92
     def process_response(self, request, response):
93  
-        "Check for a flat page (for 404s) and calculate the Etag, if needed."
  93
+        "Send broken link emails and calculate the Etag, if needed."
94 94
         if response.status_code == 404:
95 95
             if settings.SEND_BROKEN_LINK_EMAILS:
96 96
                 # If the referrer was from an internal link or a non-search-engine site,

0 notes on commit 352deb0

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