[issue9386] Bad indentation in urllib import fixer with multiple imports

Ray.Allen report at bugs.python.org
Wed Jul 28 14:18:22 CEST 2010

Ray.Allen <ysj.ray at gmail.com> added the comment:

When one import statement is split to two or more, we encounter this problem: the indentation of the import statements except the first one is unknown, and is difficult to fix this problem, since a import maybe in a multi-statement line, like: 'a=1;import sys'. I wonder if there is way to fix this problem perfectly. Maybe we could just put all the resulting import statements into one single multi-statement line, joined by ';', as my patch specified.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list