Title: Fix implicit relative imports
Type: Stage:
Components: 2to3 (2.x to 3.x conversion tool) Versions:
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: wolever Nosy List: loewis, wolever
Priority: normal Keywords:

Created on 2008-03-19 02:22 by loewis, last changed 2008-03-19 16:20 by wolever. This issue is now closed.

Messages (2)
msg64026 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2008-03-19 02:22
There should be a fixer that changes

from foo import bar


from .foo import bar

if the import occurs in a package and foo is in the very same package.

Likewise, it should change

import foo


from . import foo
msg64067 - (view) Author: David Wolever (wolever) * (Python committer) Date: 2008-03-19 16:20
Added in r61626.
Date User Action Args
2008-03-19 16:20:24woleversetstatus: open -> closed
messages: + msg64067
2008-03-19 02:22:31loewiscreate