May 12, 2008
9:13 p.m.
On Mon, May 12, 2008 at 1:58 PM, Guilherme Polo <ggpolo@gmail.com> wrote:
Hello,
Would someone tell me how can I add a new entry in the MAPPING dict in the lib2to3/fixes/fix_imports.py that does the following:
"import A" gets fixed as "import C.D as A"
Right now it is fixing by doing "import C.D" and changing several other lines in the code to use this new "C.D" name. I wanted to avoid these changes if possible.
I don't believe there's a way to do that, but adding support for it should be fairly straight-forward. Assign the patch to me for review. Collin Winter