[New-bugs-announce] [issue43487] Rename __unicode__ methods to __str__ in 2to3 conversion

Bart Broere report at bugs.python.org
Sat Mar 13 11:14:46 EST 2021


New submission from Bart Broere <mail at bartbroere.eu>:

While porting a (Django) code base recently, using 2to3, I missed the conversion from __unicode__ to __str__. I have created my own 2to3 fixer, which might be useful for other people.

If it's not useful enough to be included in lib2to3, or has side effects that I did not foresee, please let me know :-)

----------
components: 2to3 (2.x to 3.x conversion tool)
messages: 388627
nosy: bartbroere
priority: normal
severity: normal
status: open
title: Rename __unicode__ methods to __str__ in 2to3 conversion
type: enhancement
versions: Python 3.10

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43487>
_______________________________________


More information about the New-bugs-announce mailing list