[New-bugs-announce] [issue2446] 2to3 translates "import foobar" to "import .foobar" rather than "from . import foobar"

Bruce Frederiksen report at bugs.python.org
Fri Mar 21 18:59:42 CET 2008


New submission from Bruce Frederiksen <dangyogi at gmail.com>:

2to3 svn rev 61696 translates "import local_module" into "import
.local_module" which isn't legal syntax.

Should be "from . import local_module".

----------
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
messages: 64247
nosy: collinwinter, dangyogi
severity: normal
status: open
title: 2to3 translates "import foobar" to "import .foobar" rather than "from . import foobar"
type: behavior
versions: Python 2.6

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2446>
__________________________________


More information about the New-bugs-announce mailing list