GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing mail.python.org — [Python-Dev] lib2to3, need some light on the imports fixer [Python-Dev] lib2to3, need some light on the imports fixerGuilherme Polo ggpolo at gmail.comFri May 16 19:30:05 CEST 2008
2008/5/12 Collin Winter <collinw at gmail.com>: > On Mon, May 12, 2008 at 1:58 PM, Guilherme Polo <ggpolo at 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. > Is there something I could read get some 2to3 understanding ? How do I construct patterns ? > Collin Winter > -- -- Guilherme H. Polo Goncalves
More information about the Python-Dev mailing list |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |