Ticket #24175: 24175.diff

File 24175.diff, 778 bytes (added by Tim Graham, 9 years ago)
  • docs/internals/contributing/writing-code/coding-style.txt

    diff --git a/docs/internals/contributing/writing-code/coding-style.txt b/docs/internals/contributing/writing-code/coding-style.txt
    index c87e28c..e2e274c 100644
    a b Python style  
    4040
    4141      from django.views.generic.base import View
    4242
    43 * In docstrings, use "action words" such as::
    44 
    45       def foo():
    46           """
    47           Calculates something and returns the result.
    48           """
    49           pass
    50 
    51   Here's an example of what not to do::
    52 
    53       def foo():
    54           """
    55           Calculate something and return the result.
    56           """
    57           pass
     43* In docstrings, follow :pep:`257`.
    5844
    5945Template style
    6046--------------
Back to Top