From 7024fe11922cbfc0b7f5df224ba269711e918f3d Mon Sep 17 00:00:00 2001 From: Dominique Plante Date: Wed, 15 May 2013 22:18:35 -0700 Subject: [PATCH] adhere to pep8 --- pelican/contents.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pelican/contents.py b/pelican/contents.py index b130b174..fec8af14 100644 --- a/pelican/contents.py +++ b/pelican/contents.py @@ -145,8 +145,8 @@ class Content(object): 'date': getattr(self, 'date', datetime.now()), 'author': getattr(self, 'author', ''), 'category': getattr(self, 'category', - self.settings['DEFAULT_CATEGORY']), - }) + self.settings['DEFAULT_CATEGORY']), + }) return metadata def _expand_settings(self, key): @@ -202,7 +202,7 @@ class Content(object): origin = origin.replace('\\', '/') # Fow windows paths. else: logger.warning("Unable to find {fn}, skipping url" - " replacement".format(fn=value)) + " replacement".format(fn=value)) return ''.join((m.group('markup'), m.group('quote'), origin, m.group('quote'))) @@ -235,7 +235,7 @@ class Content(object): return self.content return truncate_html_words(self.content, - self.settings['SUMMARY_MAX_LENGTH']) + self.settings['SUMMARY_MAX_LENGTH']) def _set_summary(self, summary): """Dummy function""" @@ -312,5 +312,5 @@ def is_valid_content(content, f): return True except NameError as e: logger.error("Skipping %s: could not find information about " - "'%s'" % (f, e)) + "'%s'" % (f, e)) return False