diff options
| author | Anton Samarchyan <anton.samarchyan@savoirfairelinux.com> | 2017-01-24 16:23:56 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-02-20 19:57:33 -0500 |
| commit | 3eb679a86956d9eedf24492f0002de002f7180f5 (patch) | |
| tree | 2ebd5947ef44bf4dd9f24715c3645d80f182c861 /django/dispatch | |
| parent | afcf44c10108141e66a8aef0a3cbc151b1c16855 (diff) | |
Refs #27656 -- Updated django.forms/http docstring verbs according to PEP 257.
Diffstat (limited to 'django/dispatch')
| -rw-r--r-- | django/dispatch/dispatcher.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/django/dispatch/dispatcher.py b/django/dispatch/dispatcher.py index 5599b9fdfc..5e1f83890f 100644 --- a/django/dispatch/dispatcher.py +++ b/django/dispatch/dispatcher.py @@ -118,7 +118,7 @@ class Signal: Disconnect receiver from sender for signal. If weak references are used, disconnect need not be called. The receiver - will be remove from dispatch automatically. + will be removed from dispatch automatically. Arguments: @@ -168,7 +168,7 @@ class Signal: named Named arguments which will be passed to receivers. - Returns a list of tuple pairs [(receiver, response), ... ]. + Return a list of tuple pairs [(receiver, response), ... ]. """ if not self.receivers or self.sender_receivers_cache.get(sender) is NO_RECEIVERS: return [] @@ -194,12 +194,10 @@ class Signal: arguments must be a subset of the argument names defined in providing_args. - Return a list of tuple pairs [(receiver, response), ... ]. May raise - DispatcherKeyError. + Return a list of tuple pairs [(receiver, response), ... ]. If any receiver raises an error (specifically any subclass of - Exception), the error instance is returned as the result for that - receiver. + Exception), return the error instance as the result for that receiver. """ if not self.receivers or self.sender_receivers_cache.get(sender) is NO_RECEIVERS: return [] |
