New submission from Torsten Marek <shlo...@gmx.net>: The fixer for absolute -> relative imports prefixes "." to already relative imports, i.e.
from . import something will be converted into from .. import something if something.py exists. This of course will raise an exception on import or introduce subtle bugs if something exists in .. I've attached a patch against 2to3 head which addresses this problem. ---------- components: 2to3 (2.x to 3.0 conversion tool) files: fix-no-prefix-relative-import.diff keywords: patch messages: 104914 nosy: shlomme priority: normal severity: normal status: open title: fix_import prefixes "." to already relative imports type: behavior Added file: http://bugs.python.org/file17196/fix-no-prefix-relative-import.diff _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8608> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com