Skip to content


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: 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/
2  django/template/
@@ -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.