Skip to content

Commit 0ff58d1

Browse files
Changes log to use unicode when on Python 2.7 (#2091)
1 parent 6b137b6 commit 0ff58d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/robotide/log/log.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@
2525
from robotide.pluginapi import Plugin, ActionInfo, RideLog
2626
from robotide import widgets
2727
from robotide import context
28+
from robotide.utils import PY2
2829

2930

3031
def _message_to_string(msg):
32+
if PY2:
33+
return unicode('%s [%s]: %s\n\n' % (msg.timestamp, msg.level, msg.message))
3134
return '%s [%s]: %s\n\n' % (msg.timestamp, msg.level, msg.message)
3235

3336

0 commit comments

Comments
 (0)