Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Mar 16, 2014
1 parent 24666c1 commit 4baf81a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nikola/plugin_categories.py
Expand Up @@ -63,12 +63,12 @@ def inject_templates(self):
"""If this plugin contains a 'templates' folder,
then templates/mako or templates/jinja will be inserted very early in
the theme chain."""

# Sorry, found no other way to get this
mod_path = sys.modules[self.__class__.__module__].__file__
mod_dir = os.path.dirname(mod_path)
tmpl_dir = os.path.join(
mod_dir,
mod_dir,
'templates',
self.site.template_system.name
)
Expand Down Expand Up @@ -157,6 +157,7 @@ class Task(BaseTask):

name = "dummy_task"


class LateTask(BaseTask):
"""Plugins of this type are executed after all plugins of type Task."""

Expand Down Expand Up @@ -189,7 +190,7 @@ def render_template_to_string(self, template, context):
raise NotImplementedError()

def inject_directory(self, directory):
"""Injects the directory with the lowest priority in the
"""Injects the directory with the lowest priority in the
template search mechanism."""
raise NotImplementedError()

Expand Down

0 comments on commit 4baf81a

Please sign in to comment.