Commit 2f5e8170 by Toshio Kuratomi

Do not mix byte str with unicode type

parent 01ba2e94
...@@ -247,9 +247,9 @@ class Display: ...@@ -247,9 +247,9 @@ class Display:
def error(self, msg, wrap_text=True): def error(self, msg, wrap_text=True):
if wrap_text: if wrap_text:
new_msg = "\n[ERROR]: %s" % msg new_msg = u"\n[ERROR]: %s" % msg
wrapped = textwrap.wrap(new_msg, self.columns) wrapped = textwrap.wrap(new_msg, self.columns)
new_msg = "\n".join(wrapped) + "\n" new_msg = u"\n".join(wrapped) + u"\n"
else: else:
new_msg = msg new_msg = msg
if new_msg not in self._errors: if new_msg not in self._errors:
......
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