mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
adhere to pep8
This commit is contained in:
parent
ee752d9b66
commit
7024fe1192
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue