Changeset 6970
- Timestamp:
- 12/22/07 13:12:58 (1 year ago)
- Files:
-
- django/trunk/django/template/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/template/__init__.py
r6969 r6970 160 160 except UnicodeDecodeError: 161 161 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: 163 163 origin = StringOrigin(template_string) 164 164 # Could do some crazy stack-frame stuff to record where this string
