Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 6bcf1f066166ec43afe9a26c8c91bc0e75b68e2e 1 parent 6557dc9
Adrian Holovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/template/__init__.py
2  django/template/__init__.py
View
@@ -159,7 +159,7 @@ def __init__(self, template_string, origin=None, name='<Unknown Template>'):
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...
Please sign in to comment.
Something went wrong with that request. Please try again.