fix encoding issues in profile_tasks (#16522)

* fix encoding issues in profile_tasks

fixes #16521

* really fix it

* unicode the nested

* simpler format

* readded space after name
pull/16548/head
Brian Coca 8 years ago committed by GitHub
parent 26755b3a62
commit faec03aabc

@ -133,8 +133,7 @@ class CallbackModule(CallbackBase):
# Print the timings # Print the timings
for uuid, result in results: for uuid, result in results:
msg = '' msg=u"{0:-<70} {1:->9}".format(result['name'],u' {0:.02f}s'.format(result['time']))
msg="{0:-<70}{1:->9}".format('{0} '.format(result['name']),' {0:.02f}s'.format(result['time']))
if 'path' in result: if 'path' in result:
msg += "\n{0:-<79}".format( '{0} '.format(result['path'])) msg += u"\n{0:-<79}".format(result['path'])
self._display.display(msg) self._display.display(msg)

Loading…
Cancel
Save