mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Remove unicode chars for output, as it breaks on some systems.
This commit is contained in:
parent
cb337aad9d
commit
97b9a1c6ed
1 changed files with 4 additions and 4 deletions
|
|
@ -79,7 +79,7 @@ class Generator(object):
|
||||||
pass
|
pass
|
||||||
fp = open(complete_path, 'w')
|
fp = open(complete_path, 'w')
|
||||||
feed.write(fp, 'utf-8')
|
feed.write(fp, 'utf-8')
|
||||||
print u' ✔ writing %s' % complete_path
|
print u' [OK] writing %s' % complete_path
|
||||||
|
|
||||||
fp.close()
|
fp.close()
|
||||||
return feed
|
return feed
|
||||||
|
|
@ -101,7 +101,7 @@ class Generator(object):
|
||||||
pass
|
pass
|
||||||
with open(filename, 'w', encoding='utf-8') as f:
|
with open(filename, 'w', encoding='utf-8') as f:
|
||||||
f.write(output)
|
f.write(output)
|
||||||
print u' ✔ writing %s' % filename
|
print u' [ok] writing %s' % filename
|
||||||
|
|
||||||
def get_templates(self, path=None):
|
def get_templates(self, path=None):
|
||||||
"""Return the templates to use.
|
"""Return the templates to use.
|
||||||
|
|
@ -164,7 +164,7 @@ class ArticlesGenerator(Generator):
|
||||||
try:
|
try:
|
||||||
article.check_properties()
|
article.check_properties()
|
||||||
except NameError as e:
|
except NameError as e:
|
||||||
print u" ☓ Skipping %s: impossible to find informations about '%s'" % (f, e)
|
print u"[INFO] Skipping %s: impossible to find informations about '%s'" % (f, e)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
update_dict(self.dates, article.date.strftime('%Y-%m-%d'), article)
|
update_dict(self.dates, article.date.strftime('%Y-%m-%d'), article)
|
||||||
|
|
@ -226,7 +226,7 @@ class ArticlesGenerator(Generator):
|
||||||
fromp = os.path.expanduser(os.path.join(self.theme, path))
|
fromp = os.path.expanduser(os.path.join(self.theme, path))
|
||||||
to = os.path.expanduser(os.path.join(self.output_path, path))
|
to = os.path.expanduser(os.path.join(self.output_path, path))
|
||||||
shutil.copytree(fromp, to)
|
shutil.copytree(fromp, to)
|
||||||
print u' ✔ copying %s' % fromp
|
print u' [OK] copying %s' % fromp
|
||||||
|
|
||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue