forked from github/pelican
commit
de8b437549
8 changed files with 8 additions and 8 deletions
|
|
@ -159,7 +159,7 @@ class Pelican(object):
|
|||
]
|
||||
|
||||
# erase the directory if it is not the source and if that's
|
||||
# explicitely asked
|
||||
# explicitly asked
|
||||
if (self.delete_outputdir and not
|
||||
os.path.realpath(self.path).startswith(self.output_path)):
|
||||
clean_output_dir(self.output_path, self.output_retention)
|
||||
|
|
|
|||
|
|
@ -193,7 +193,7 @@ class Content(object):
|
|||
"""Update the content attribute.
|
||||
|
||||
Change all the relative paths of the content to relative paths
|
||||
suitable for the ouput content.
|
||||
suitable for the output content.
|
||||
|
||||
:param content: content resource that will be passed to the templates.
|
||||
:param siteurl: siteurl which is locally generated by the writer in
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class BaseFormatter(logging.Formatter):
|
|||
s = super(BaseFormatter, self).formatException(ei)
|
||||
# fancy format traceback
|
||||
s = str('\n').join(str(' | ') + line for line in s.splitlines())
|
||||
# seperate the traceback from the preceding lines
|
||||
# separate the traceback from the preceding lines
|
||||
s = str(' |___\n{}').format(s)
|
||||
return s
|
||||
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ def mute(returns_output=False):
|
|||
If "returns_output" is True, the function will return a generator
|
||||
yielding the printed lines instead of the return values.
|
||||
|
||||
The decorator litterally hijack sys.stdout during each function
|
||||
The decorator literally hijack sys.stdout during each function
|
||||
execution, so be careful with what you apply it to.
|
||||
|
||||
>>> def numbers():
|
||||
|
|
|
|||
|
|
@ -471,7 +471,7 @@ class TestDateFormatter(unittest.TestCase):
|
|||
locale_available('French'),
|
||||
'French locale needed')
|
||||
def test_french_strftime(self):
|
||||
# This test tries to reproduce an issue that occured with python3.3 under macos10 only
|
||||
# This test tries to reproduce an issue that occurred with python3.3 under macos10 only
|
||||
locale.setlocale(locale.LC_ALL, str('fr_FR.UTF-8'))
|
||||
date = utils.SafeDatetime(2014,8,14)
|
||||
# we compare the lower() dates since macos10 returns "Jeudi" for %A whereas linux reports "jeudi"
|
||||
|
|
|
|||
|
|
@ -681,7 +681,7 @@ class FileStampDataCacher(FileDataCacher):
|
|||
'''Subclass that also caches the stamp of the file'''
|
||||
|
||||
def __init__(self, settings, cache_name, caching_policy, load_policy):
|
||||
'''This sublcass additionaly sets filestamp function
|
||||
'''This sublcass additionally sets filestamp function
|
||||
and base path for filestamping operations
|
||||
'''
|
||||
super(FileStampDataCacher, self).__init__(settings, cache_name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue