forked from github/pelican
Warning string formatting needs unicode if filename is utf-8
This commit is contained in:
parent
499a67912f
commit
082cc2a401
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue