Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #16200 -- Stopped TemplateIfParser from returning something in …

…`__init__`. Thanks, traff.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a1991e37f4757ea1f4a195296dbd586e4a5c90ee 1 parent 662b372
Jannis Leidel authored June 16, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/template/defaulttags.py
2  django/template/defaulttags.py
@@ -846,7 +846,7 @@ class TemplateIfParser(IfParser):
846 846
 
847 847
     def __init__(self, parser, *args, **kwargs):
848 848
         self.template_parser = parser
849  
-        return super(TemplateIfParser, self).__init__(*args, **kwargs)
  849
+        super(TemplateIfParser, self).__init__(*args, **kwargs)
850 850
 
851 851
     def create_var(self, value):
852 852
         return TemplateLiteral(self.template_parser.compile_filter(value), value)

0 notes on commit a1991e3

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