mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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... | ||||
|   | ||||
		Reference in New Issue
	
	Block a user