Skip to content
Permalink
Browse files

Matching signatures for compile

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Oct 14, 2016
1 parent 57f0314 commit ce2f51029ff5182c9ca7923b1de330ae2e12a821
Showing with 2 additions and 2 deletions.
  1. +2 −2 nikola/plugin_categories.py
@@ -275,15 +275,15 @@ def register_extra_dependencies(self, post):
"""Add dependency to post object to check .dep file."""
post.add_dependency(lambda: self._read_extra_deps(post), 'fragment')

def compile(self, source, dest, is_two_file=False, post=None, lang=None):
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)

# TODO remove in v8
def compile_html(self, source, dest, is_two_file=False):
def compile_html(self, source, dest, is_two_file=True):
"""Compile the source, save it on dest (DEPRECATED)."""
raise NotImplementedError()

0 comments on commit ce2f510

Please sign in to comment.
You can’t perform that action at this time.