Skip to content

Commit

Permalink
trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed May 9, 2015
1 parent 0bd330d commit 086bc24
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
5 changes: 1 addition & 4 deletions nikola/nikola.py
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugin_categories.py
Expand Up @@ -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()

Expand Down
4 changes: 1 addition & 3 deletions nikola/plugins/task/scan_posts.py
Expand Up @@ -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']:
Expand Down Expand Up @@ -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.