Skip to content
Browse files

Changed an '== None' to 'is None' in Template.__init__()

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 6557dc9 commit 6bcf1f066166ec43afe9a26c8c91bc0e75b68e2e @adrianholovaty adrianholovaty committed
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...

0 comments on commit 6bcf1f0

Please sign in to comment.
Something went wrong with that request. Please try again.