This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Rename __unicode__ methods to __str__ in 2to3 conversion
Type: enhancement Stage: resolved
Components: 2to3 (2.x to 3.x conversion tool) Versions: Python 3.10
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: bartbroere, benjamin.peterson, gregory.p.smith
Priority: normal Keywords: patch

Created on 2021-03-13 16:14 by bartbroere, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 24844 closed bartbroere, 2021-03-13 16:16
Messages (2)
msg388627 - (view) Author: Bart Broere (bartbroere) * Date: 2021-03-13 16:14
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 :-)
msg389189 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2021-03-20 22:13
We're not accepting anything new into lib2to3 anymore as it is deprecated and slated for eventual removal.  I recommend putting any fixers you develop up as on PyPI as package(s) for others to use.
History
Date User Action Args
2022-04-11 14:59:42adminsetgithub: 87653
2021-03-20 22:13:06gregory.p.smithsetstatus: open -> closed

nosy: + gregory.p.smith
messages: + msg389189

resolution: rejected
stage: patch review -> resolved
2021-03-19 22:47:31terry.reedysetnosy: + benjamin.peterson
2021-03-13 16:16:14bartbroeresetkeywords: + patch
stage: patch review
pull_requests: + pull_request23607
2021-03-13 16:14:46bartbroerecreate