Django

Code

Changeset 6970

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

Changed an '== None' to 'is None' in Template.init()

Files:

Legend:

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

    r6969 r6970  
    160160        except UnicodeDecodeError: 
    161161            raise TemplateEncodingError("Templates can only be constructed from unicode or UTF-8 strings.") 
    162         if settings.TEMPLATE_DEBUG and origin == None: 
     162        if settings.TEMPLATE_DEBUG and origin is None: 
    163163            origin = StringOrigin(template_string) 
    164164            # Could do some crazy stack-frame stuff to record where this string