From 46da25827faa4426b83ebc0ac3c522bcdf2758be Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 28 Jan 2013 14:41:01 -0600 Subject: [PATCH] No need for an __init__ at all in the TemplateHookExtension, really. --- mediagoblin/tools/template.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mediagoblin/tools/template.py b/mediagoblin/tools/template.py index f83c8228..5bd20505 100644 --- a/mediagoblin/tools/template.py +++ b/mediagoblin/tools/template.py @@ -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 = [] -- 2.25.1