Commit ab9ef671 authored by Vincent A's avatar Vincent A Committed by Florent Fourcot

cookboob: fix unicode comments display in python2

Using str on Comments object will generate an encoded-str in python2,
which will fail when concatenated to a unicode.
parent e1de84f5
......@@ -26,7 +26,6 @@ from weboob.capabilities.base import empty
from weboob.tools.application.repl import ReplApplication, defaultcount
from weboob.tools.application.formatters.iformatter import IFormatter, PrettyFormatter
__all__ = ['Cookboob']
......@@ -53,7 +52,7 @@ class RecipeInfoFormatter(IFormatter):
if not empty(obj.comments):
result += '\n%sComments%s\n' % (self.BOLD, self.NC)
for c in obj.comments:
result += ' * %s\n' % c
result += u' * %s\n' % c
return result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment