Skip to content

Commit

Permalink
Undo an ugly stylistic decision
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Dec 9, 2016
1 parent c8d8cbe commit 3d34c88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/task/categories.py
Expand Up @@ -103,7 +103,7 @@ def slugify_category_name(self, path, lang):

def get_path(self, classification, lang, dest_type='page'):
"""A path handler for the given classification."""
return ([_f for _f in [self.site.config['CATEGORY_PATH'][lang]] if _f] + self.slugify_category_name(classification, lang), 'auto')
return [_f for _f in [self.site.config['CATEGORY_PATH'][lang]] if _f] + self.slugify_category_name(classification, lang), 'auto'

def extract_hierarchy(self, classification):
"""Given a classification, return a list of parts in the hierarchy."""
Expand Down

0 comments on commit 3d34c88

Please sign in to comment.