Django

Code

Changeset 6974

Show
Ignore:
Timestamp:
12/22/07 13:30:13 (1 year ago)
Author:
adrian
Message:

Negligible changes to django.template -- removed a useless docstring, converted another one to a comment

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/template/__init__.py

    r6973 r6974  
    155155class Template(object): 
    156156    def __init__(self, template_string, origin=None, name='<Unknown Template>'): 
    157         "Compilation stage" 
    158157        try: 
    159158            template_string = smart_unicode(template_string) 
     
    187186class Token(object): 
    188187    def __init__(self, token_type, contents): 
    189         "The token_type must be TOKEN_TEXT, TOKEN_VAR, TOKEN_BLOCK or TOKEN_COMMENT" 
     188        # token_type must be TOKEN_TEXT, TOKEN_VAR, TOKEN_BLOCK or TOKEN_COMMENT. 
    190189        self.token_type, self.contents = token_type, contents 
    191190 
     
    204203 
    205204    def tokenize(self): 
    206         "Return a list of tokens from a given template_string
     205        "Return a list of tokens from a given template_string.
    207206        in_tag = False 
    208207        result = [] 
     
    299298        pass 
    300299 
    301     def error(self, token, msg ): 
     300    def error(self, token, msg): 
    302301        return TemplateSyntaxError(msg) 
    303302