Migrating Pology to Python 3

Adrian Chaves adrian at chaves.io
Thu Oct 6 13:05:42 BST 2022


The difference is that iterating ColorString used to give you 
1-character ColorString objects, in Python 3 it gives you str objects, 
causing the double escaping.

On 2022-10-06 13:47, Adrian Chaves wrote:

> I have restored it and instead removed ColorString.join, which was the 
> one causing the escaping of the color-related tags.
> 
> I am not 100% sure that is the right solution, though. I do not fully 
> understand why Python 2 was working OK here. Will look into it.
> 
> On 2022-10-05 22:49, Chusslove Illich wrote:
> 
>> Hi Adrian,
>> 
>> As you might be gathering from other replies, removing that _escape
>> should not be done. So regarding the issue with terminal coloring, how
>> is the Python 2 version behaving on the same example? If it behaves
>> differently, or even as expected, the problem must lie somewhere else.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-i18n-doc/attachments/20221006/c30e5389/attachment.htm>


More information about the kde-i18n-doc mailing list