[issue43487] Rename __unicode__ methods to __str__ in 2to3 conversion

2021-03-13 Thread Bart Broere
Change by Bart Broere : -- keywords: +patch pull_requests: +23607 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24844 ___ Python tracker <https://bugs.python.org/issu

[issue43487] Rename __unicode__ methods to __str__ in 2to3 conversion

2021-03-13 Thread Bart Broere
New submission from Bart Broere : 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 ef