Commit 3a3ad1ec authored by Vincent Pelletier's avatar Vincent Pelletier

Avoid emitting unicode.

For some reason res list can contain unicode strings (requinfo maybe).
This makes manage_debug_thread return a raw unicode object, which is
unreadable. So, if a unicode object is found, encode it as utf-8.
parent ca182eef
...@@ -70,7 +70,10 @@ def dump_threads(): ...@@ -70,7 +70,10 @@ def dump_threads():
frames = None frames = None
res.append("End of dump") res.append("End of dump")
return '\n'.join(res) result = '\n'.join(res)
if isinstance(result, unicode):
result = result.encode('utf-8')
return result
config = getConfiguration() config = getConfiguration()
deadlockdebugger = config.product_config.get('deadlockdebugger') deadlockdebugger = config.product_config.get('deadlockdebugger')
......
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