diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-01-28 14:41:01 -0600 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-01-30 13:22:19 -0600 |
commit | 46da25827faa4426b83ebc0ac3c522bcdf2758be (patch) | |
tree | cde4cf5b306a2fa445a69250068288e17325507c | |
parent | 927be5e8cafbf561ee6ff6a6d74ad566fa3402f0 (diff) | |
download | mediagoblin-46da25827faa4426b83ebc0ac3c522bcdf2758be.tar.lz mediagoblin-46da25827faa4426b83ebc0ac3c522bcdf2758be.tar.xz mediagoblin-46da25827faa4426b83ebc0ac3c522bcdf2758be.zip |
No need for an __init__ at all in the TemplateHookExtension, really.
-rw-r--r-- | mediagoblin/tools/template.py | 5 |
1 files changed, 1 insertions, 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 = [] |