summaryrefslogtreecommitdiff
path: root/django/template
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2007-12-22 19:12:58 +0000
committerAdrian Holovaty <adrian@holovaty.com>2007-12-22 19:12:58 +0000
commit6bcf1f066166ec43afe9a26c8c91bc0e75b68e2e (patch)
tree28da66c9cbd062cc88ed7619102b2b8daa819da3 /django/template
parent6557dc954b2d45b6e78104755b2c59347e4a05cc (diff)
Changed an '== None' to 'is None' in Template.__init__()
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6970 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/template')
-rw-r--r--django/template/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/__init__.py b/django/template/__init__.py
index dafa0696f7..7a1c85174c 100644
--- a/django/template/__init__.py
+++ b/django/template/__init__.py
@@ -159,7 +159,7 @@ class Template(object):
template_string = smart_unicode(template_string)
except UnicodeDecodeError:
raise TemplateEncodingError("Templates can only be constructed from unicode or UTF-8 strings.")
- if settings.TEMPLATE_DEBUG and origin == None:
+ if settings.TEMPLATE_DEBUG and origin is None:
origin = StringOrigin(template_string)
# Could do some crazy stack-frame stuff to record where this string
# came from...