Skip to content

Commit 086bc24

Browse files
committedMay 9, 2015
trailing whitespace
1 parent 0bd330d commit 086bc24

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed
 

Diff for: ‎nikola/nikola.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ def __init__(self, **config):
266266
}
267267

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

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

13761374
for p in self.plugin_manager.getPluginsOfCategory('PostScanner'):
1377-
timeline, global_data = p.plugin_object.scan()
1375+
timeline = p.plugin_object.scan()
13781376
# FIXME: can there be conflicts here?
13791377
self.timeline.extend(timeline)
1380-
self.global_data.update(global_data)
13811378

13821379
quit = False
13831380
# Classify posts per year/tag/month/whatever

Diff for: ‎nikola/plugin_categories.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def scan(self):
8989
"""Creates a list of posts from some source. Returns timeline, global_data:
9090
9191
timeline is a list of Post objects
92-
global_data is a dictionary where keys are source paths and values are posts.
92+
global_data is a dictionary where keys are source paths and values are posts.
9393
"""
9494
raise NotImplementedError()
9595

Diff for: ‎nikola/plugins/task/scan_posts.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ def scan(self):
4747
print("Scanning posts", end='', file=sys.stderr)
4848

4949
timeline = []
50-
global_data = {}
5150

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

102-
return timeline, global_data
100+
return timeline

0 commit comments

Comments
 (0)
Please sign in to comment.