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 wolever
Recipients collinwinter, dangyogi, loewis, wolever
Date 2008-03-28.19:19:36
SpamBayes Score 0.24338832
Marked as misclassified No
Message-id <35A3DB0E-25D0-41BE-8919-85432F87B85D@cs.toronto.edu>
In-reply-to <1206731088.55.0.454128208499.issue2446@psf.upfronthosting.co.za>
Content
Can you write a test case proving this?

At the moment, the second thing that the transform function in  
fix_import.py does is return if the import doesn't look like a local  
import (see probably_a_local_import in fix_import).

At the moment, all (with an exception or two) of the import test  
cases test both cases -- the local import exists and the local import  
does not exist -- automatically.

On 28-Mar-08, at 3:04 PM, Collin Winter wrote:

>
> Collin Winter <collinw@gmail.com> added the comment:
>
> The problem with the "fix" in r61755 is that it doesn't distinguish
> between stdlib and non-stdlib imports: "import os" becomes "from .
> import os", which is clearly wrong.
>
> __________________________________
> Tracker <report@bugs.python.org>
> <http://bugs.python.org/issue2446>
> __________________________________
History
Date User Action Args
2008-03-28 19:19:37woleversetspambayes_score: 0.243388 -> 0.24338832
recipients: + wolever, loewis, collinwinter, dangyogi
2008-03-28 19:19:37woleverlinkissue2446 messages
2008-03-28 19:19:36wolevercreate