forked from github/pelican
import unittest if cannot found unittest2
This commit is contained in:
parent
d1d82db4f7
commit
e78372f338
4 changed files with 17 additions and 6 deletions
|
|
@ -86,9 +86,9 @@ class Page(object):
|
|||
else:
|
||||
self.date_format = settings['DEFAULT_DATE_FORMAT']
|
||||
|
||||
if isinstance(self.date_format, tuple):
|
||||
locale.setlocale(locale.LC_ALL, self.date_format[0])
|
||||
self.date_format = self.date_format[1]
|
||||
if isinstance(self.date_format, tuple):
|
||||
locale.setlocale(locale.LC_ALL, self.date_format[0])
|
||||
self.date_format = self.date_format[1]
|
||||
|
||||
if hasattr(self, 'date'):
|
||||
if platform == 'win32':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue