Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Apr 15, 2018
1 parent 2d30008 commit 792c5dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
6 changes: 0 additions & 6 deletions nikola/plugins/compile/rest/post_list.py
Expand Up @@ -25,17 +25,11 @@
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""Post list directive for reStructuredText."""

import os
import uuid
import natsort
import operator

from docutils import nodes
from docutils.parsers.rst import Directive, directives

from nikola import utils
from nikola.plugin_categories import RestExtension
from nikola.packages.datecond import date_in_range

# from nikola.plugins.shortcode.post_list import _do_post_list

Expand Down
11 changes: 5 additions & 6 deletions nikola/plugins/shortcode/post_list.py
Expand Up @@ -32,8 +32,6 @@
import uuid

import natsort
from docutils import nodes
from docutils.parsers.rst import Directive, directives

from nikola import utils
from nikola.packages.datecond import date_in_range
Expand All @@ -46,9 +44,9 @@ class Plugin(ShortcodePlugin):
name = "post_list"

def handler(self, start=None, stop=None, reverse=False, tags=None, require_all_tags=False, categories=None,
sections=None, slugs=None, post_type='post', type=False,
lang=None, template='post_list_directive.tmpl', sort=None,
id=None, data=None, state=None, site=None, date=None, filename=None, post=None):
sections=None, slugs=None, post_type='post', type=False,
lang=None, template='post_list_directive.tmpl', sort=None,
id=None, data=None, state=None, site=None, date=None, filename=None, post=None):
if lang is None:
lang = utils.LocaleBorg().current_lang
if site.invariant: # for testing purposes
Expand Down Expand Up @@ -162,5 +160,6 @@ def handler(self, start=None, stop=None, reverse=False, tags=None, require_all_t
template, None, template_data)
return output, template_deps


# Request file name from shortcode (Issue #2412)
Plugin.handler.nikola_shortcode_pass_filename = True
Plugin.handler.nikola_shortcode_pass_filename = True

0 comments on commit 792c5dc

Please sign in to comment.