Skip to content
Permalink
Browse files

trailing whitespace

  • Loading branch information
ralsina committed May 9, 2015
1 parent 0bd330d commit 086bc24b8735044b7c9fb92d0354ae0721aac4bf
Showing with 3 additions and 8 deletions.
  1. +1 −4 nikola/nikola.py
  2. +1 −1 nikola/plugin_categories.py
  3. +1 −3 nikola/plugins/task/scan_posts.py
@@ -266,7 +266,6 @@ def __init__(self, **config):
}

self.strict = False
self.global_data = {}
self.posts = []
self.all_posts = []
self.posts_per_year = defaultdict(list)
@@ -1362,7 +1361,6 @@ def scan_posts(self, really=False, ignore_quit=False, quiet=False):
return

# Reset things
self.global_data = {}
self.posts = []
self.all_posts = []
self.posts_per_year = defaultdict(list)
@@ -1374,10 +1372,9 @@ def scan_posts(self, really=False, ignore_quit=False, quiet=False):
self.pages = []

for p in self.plugin_manager.getPluginsOfCategory('PostScanner'):
timeline, global_data = p.plugin_object.scan()
timeline = p.plugin_object.scan()
# FIXME: can there be conflicts here?
self.timeline.extend(timeline)
self.global_data.update(global_data)

quit = False
# Classify posts per year/tag/month/whatever
@@ -89,7 +89,7 @@ def scan(self):
"""Creates a list of posts from some source. Returns timeline, global_data:
timeline is a list of Post objects
global_data is a dictionary where keys are source paths and values are posts.
global_data is a dictionary where keys are source paths and values are posts.
"""
raise NotImplementedError()

@@ -47,7 +47,6 @@ def scan(self):
print("Scanning posts", end='', file=sys.stderr)

timeline = []
global_data = {}

for wildcard, destination, template_name, use_in_feeds in \
self.site.config['post_pages']:
@@ -97,6 +96,5 @@ def scan(self):
self.site.get_compiler(base_path)
)
timeline.append(post)
global_data[post.source_path] = post

return timeline, global_data
return timeline

0 comments on commit 086bc24

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