From 6bcf1f066166ec43afe9a26c8c91bc0e75b68e2e Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sat, 22 Dec 2007 19:12:58 +0000 Subject: [PATCH] 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 --- django/template/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/template/__init__.py b/django/template/__init__.py index dafa0696f74..7a1c85174c5 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...