No need for an __init__ at all in the TemplateHookExtension, really.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Mon, 28 Jan 2013 20:41:01 +0000 (14:41 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 30 Jan 2013 19:22:19 +0000 (13:22 -0600)
mediagoblin/tools/template.py

index f83c82280e7b1f0f4ff4435595b9add91303c9ce..5bd20505754fbe4fdb1e846d11fabb8f617a0011 100644 (file)
@@ -120,10 +120,7 @@ class TemplateHookExtension(Extension):
     ... will include all templates hooked into the comment_extras section.
     """
 
-    tags={"template_hook"}
-
-    def __init__(self, environment):
-        super(TemplateHookExtension, self).__init__(environment)
+    tags = {"template_hook"}
 
     def parse(self, parser):
         includes = []