1
0
Fork 0
forked from github/pelican

Warning string formatting needs unicode if filename is utf-8

This commit is contained in:
Jökull Sólberg Auðunsson 2011-11-26 22:31:43 +00:00
commit 082cc2a401

View file

@ -38,7 +38,7 @@ class Page(object):
self.author = settings['AUTHOR']
else:
self.author = getenv('USER', 'John Doe')
warning("Author of `{0}' unknow, assuming that his name is `{1}'".format(filename or self.title, self.author).decode("utf-8"))
warning(u"Author of `{0}' unknow, assuming that his name is `{1}'".format(filename or self.title, self.author))
# manage languages
self.in_default_lang = True