Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Changed docstring additions from [5744] to use active verbs ('returns…

…' instead of 'return')

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5756 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit da6b3865ae096dadedc4827bbc316fe76e519802 1 parent 3b78695
Adrian Holovaty authored July 25, 2007

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  django/shortcuts/__init__.py
12  django/shortcuts/__init__.py
@@ -11,7 +11,7 @@
11 11
 
12 12
 def render_to_response(*args, **kwargs):
13 13
     """
14  
-    Return a HttpResponse whose content is filled with the result of calling
  14
+    Returns a HttpResponse whose content is filled with the result of calling
15 15
     django.template.loader.render_to_string() with the passed arguments.
16 16
     """
17 17
     return HttpResponse(loader.render_to_string(*args, **kwargs))
@@ -19,7 +19,7 @@ def render_to_response(*args, **kwargs):
19 19
 
20 20
 def _get_queryset(klass):
21 21
     """
22  
-    Return a QuerySet from a Model, Manager, or QuerySet. Created to make
  22
+    Returns a QuerySet from a Model, Manager, or QuerySet. Created to make
23 23
     get_object_or_404 and get_list_or_404 more DRY.
24 24
     """
25 25
     if isinstance(klass, QuerySet):
@@ -32,10 +32,10 @@ def _get_queryset(klass):
32 32
 
33 33
 def get_object_or_404(klass, *args, **kwargs):
34 34
     """
35  
-    Use get() to return an object, or raise a Http404 exception if the object
  35
+    Uses get() to return an object, or raises a Http404 exception if the object
36 36
     does not exist.
37 37
 
38  
-    klass may be a Model, Manager, or QuerySet object.  All other passed
  38
+    klass may be a Model, Manager, or QuerySet object. All other passed
39 39
     arguments and keyword arguments are used in the get() query.
40 40
 
41 41
     Note: Like with get(), an AssertionError will be raised if more than one
@@ -49,10 +49,10 @@ def get_object_or_404(klass, *args, **kwargs):
49 49
 
50 50
 def get_list_or_404(klass, *args, **kwargs):
51 51
     """
52  
-    Use filter() to return a list of objects, or raise a Http404 exception if
  52
+    Uses filter() to return a list of objects, or raise a Http404 exception if
53 53
     the list is empty.
54 54
 
55  
-    klass may be a Model, Manager, or QuerySet object.  All other passed
  55
+    klass may be a Model, Manager, or QuerySet object. All other passed
56 56
     arguments and keyword arguments are used in the filter() query.
57 57
     """
58 58
     queryset = _get_queryset(klass)

0 notes on commit da6b386

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