Skip to content
Permalink
Browse files

flake8

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 21, 2015
1 parent d42e655 commit b4ba52a2650f024193a6762f870468dc653e9c22
Showing with 2 additions and 1 deletion.
  1. +2 −1 nikola/plugins/command/new_post.py
@@ -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:
@@ -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.

0 comments on commit b4ba52a

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