Re: [Python-Dev] lib2to3, need some light on the imports fixer

2008-05-16 Thread Collin Winter
On Fri, May 16, 2008 at 10:42 AM, Guilherme Polo <[EMAIL PROTECTED]> wrote: > 2008/5/16 Collin Winter <[EMAIL PROTECTED]>: >> On Fri, May 16, 2008 at 10:30 AM, Guilherme Polo <[EMAIL PROTECTED]> wrote: >>> 2008/5/12 Collin Winter <[EMAIL PROTECTED]>: On Mon, May 12, 2008 at 1:58 PM, Guilherme

Re: [Python-Dev] lib2to3, need some light on the imports fixer

2008-05-16 Thread Guilherme Polo
2008/5/16 Collin Winter <[EMAIL PROTECTED]>: > On Fri, May 16, 2008 at 10:30 AM, Guilherme Polo <[EMAIL PROTECTED]> wrote: >> 2008/5/12 Collin Winter <[EMAIL PROTECTED]>: >>> On Mon, May 12, 2008 at 1:58 PM, Guilherme Polo <[EMAIL PROTECTED]> wrote: Hello, Would someone tell me how

Re: [Python-Dev] lib2to3, need some light on the imports fixer

2008-05-16 Thread Collin Winter
On Fri, May 16, 2008 at 10:30 AM, Guilherme Polo <[EMAIL PROTECTED]> wrote: > 2008/5/12 Collin Winter <[EMAIL PROTECTED]>: >> On Mon, May 12, 2008 at 1:58 PM, Guilherme Polo <[EMAIL PROTECTED]> wrote: >>> Hello, >>> >>> Would someone tell me how can I add a new entry in the MAPPING dict in >>> th

Re: [Python-Dev] lib2to3, need some light on the imports fixer

2008-05-16 Thread Guilherme Polo
2008/5/12 Collin Winter <[EMAIL PROTECTED]>: > On Mon, May 12, 2008 at 1:58 PM, Guilherme Polo <[EMAIL PROTECTED]> 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 fixe

Re: [Python-Dev] lib2to3, need some light on the imports fixer

2008-05-12 Thread Collin Winter
On Mon, May 12, 2008 at 1:58 PM, Guilherme Polo <[EMAIL PROTECTED]> 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

[Python-Dev] lib2to3, need some light on the imports fixer

2008-05-12 Thread Guilherme Polo
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.