Skip to content
Permalink
Browse files
Remove backwards compatibility from compile() (h/t @felixfontein)
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 15, 2017
1 parent d9d5e48 commit d71da8219acda2d412201f1e0a4cb74eed1b8630
Showing with 1 addition and 4 deletions.
  1. +1 −4 nikola/plugin_categories.py
@@ -301,10 +301,7 @@ def get_extra_targets(self, post, lang, dest):

def compile(self, source, dest, is_two_file=True, post=None, lang=None):
"""Compile the source file into HTML and save as dest."""
# For backwards compatibility, call `compile_html`
# If you are implementing a compiler, please implement `compile` and
# ignore `compile_html`
self.compile_html(source, dest, is_two_file)
raise NotImplementedError()

def compile_string(self, data, source_path=None, is_two_file=True, post=None, lang=None):
"""Compile the source file into HTML strings (with shortcode support).

0 comments on commit d71da82

Please sign in to comment.