Edward K Ream <edream...@gmail.com> added the comment:

The original bug report used a Leo-only function, g.toUnicode. To fix this, 
replace:

result = g.toUnicode(tokenize.untokenize(tokens))

by:

result_b = tokenize.untokenize(tokens)
result = result_b.decode('utf-8', 'strict')

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38663>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to