[issue2414] Fix implicit relative imports

2008-03-18 Thread Martin v. Löwis

New submission from Martin v. Löwis <[EMAIL PROTECTED]>:

There should be a fixer that changes

from foo import bar

into

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

to

from . import foo

--
assignee: David Wolever
components: 2to3 (2.x to 3.0 conversion tool)
messages: 64026
nosy: David Wolever, loewis
severity: normal
status: open
title: Fix implicit relative imports

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2414] Fix implicit relative imports

2008-03-19 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Added in r61626.

--
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>

__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com