[issue13272] 2to3 fix_renames doesn't rename string.lowercase/uppercase/letters

Aldwin Pollefeyt report at bugs.python.org
Thu Jul 18 04:42:25 EDT 2019


Aldwin Pollefeyt <aldwinaldwin at gmail.com> added the comment:

* there were many small issues with the patch, improved as good as possible the FixString to catch ```import as```, ```from string import *``` and ```import string```

* did not include the FixStringImports as it's not a necessity to work in Python3

* indeed, some uses of the constant names that are user-defined will also rename, only when it's in a ```import string```. Added a ```Caution``` in the documentation. Still, when all are changed, it should not affect the Python3 version, will just work with the renamed variable name.

----------
nosy: +aldwinaldwin

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


More information about the Python-bugs-list mailing list