Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 d71da82
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nikola/plugin_categories.py
Expand Up @@ -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).
Expand Down

0 comments on commit d71da82

Please sign in to comment.