Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 21, 2015
1 parent d42e655 commit b4ba52a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nikola/plugins/command/new_post.py
Expand Up @@ -43,12 +43,12 @@
PAGELOGGER = utils.get_logger('new_page', utils.STDERR_HANDLER)
LOGGER = POSTLOGGER


def filter_post_pages(compiler, is_post, compilers, post_pages, compiler_names, compilers_raw=None):
"""Given a compiler ("markdown", "rest"), and whether it's meant for
a post or a page, and compilers, return the correct entry from
post_pages."""


# compilers_raw is used only for passing to print_compilers, but we can fill
# in the old version ifneeded
if compilers_raw is None:
Expand Down Expand Up @@ -142,6 +142,7 @@ def print_compilers(compilers_raw, post_pages, compiler_names):
~ not in the COMPILERS dict (disabled)
Read more: {0}""".format(COMPILERS_DOC_LINK))


def get_default_compiler(is_post, compilers, post_pages):
"""Given compilers and post_pages, return a reasonable
default compiler for this kind of post/page.
Expand Down

0 comments on commit b4ba52a

Please sign in to comment.