Django

Code

Changeset 3312

Show
Ignore:
Timestamp:
07/10/06 09:22:04 (2 years ago)
Author:
adrian
Message:

Decimated 'whilst' in docs/templates_python.txt from [3308]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/templates_python.txt

    r3309 r3312  
    670670      example, it's ``'current_time "%Y-%m-%d %I:%M %p"'``. 
    671671 
    672     * The ``token.split_contents()`` method separates the arguments on spaces, 
    673       whilst keeping quoted strings together. The more straightforward 
    674       ``token.contents.split()`` would be as robust. 
     672    * The ``token.split_contents()`` method separates the arguments on spaces 
     673      while keeping quoted strings together. The more straightforward 
     674      ``token.contents.split()`` wouldn't be as robust, as it would naively 
     675      split on *all* spaces, including those within quoted strings. It's a good 
     676      idea to always use ``token.split_contents()``. 
    675677 
    676678    * This function is responsible for raising