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.

Author nedds
Recipients collinwinter, mhammond, nedds
Date 2008-10-08.22:18:00
SpamBayes Score 2.1371649e-10
Marked as misclassified No
Message-id <1223504281.56.0.107407187139.issue3994@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is that fix_imports doesn't look at matches that are nested
within matches. So the _winreg.OpenKey part gets fixed, but the
_winreg.HKEY_LOCAL_MACHINE does not because it is nested within the
other node. I didn't make fix_imports so I don't know what the intention
was for not matching nested matches. When I removed that restriction,
the fixer works as expected. It also does not cause any of 2to3's tests
to fail nor does it have a noticeable impact on 2to3's runtime, so I'm
tempted to say that this is the fix to make, but I don't want to commit
to it until I've heard from it's author about it. I added Collin to the
Nosy List, so hopefully he can comment on the reasoning behind the
restriction.
History
Date User Action Args
2008-10-08 22:18:01neddssetrecipients: + nedds, mhammond, collinwinter
2008-10-08 22:18:01neddssetmessageid: <1223504281.56.0.107407187139.issue3994@psf.upfronthosting.co.za>
2008-10-08 22:18:00neddslinkissue3994 messages
2008-10-08 22:18:00neddscreate