[issue3334] 2to3 looses indentation on import fix

2008-07-19 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Your patch works, so I applied it and added a test in sandbox r65137. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue3334] 2to3 looses indentation on import fix

2008-07-18 Thread Nick Edds
Nick Edds [EMAIL PROTECTED] added the comment: I believe the problem was that in the case of this fix, rather than using set_prefix to give the new node the same prefix as before, new.prefix = was used. Here is the one line fix which preserves the prefix in the example given. --

[issue3334] 2to3 looses indentation on import fix

2008-07-10 Thread Christian Theune
New submission from Christian Theune [EMAIL PROTECTED]: I got this output from 2to3: (This is from setuptools egg_info.py) -import bdist_egg; bdist_egg.write_safety_flag(cmd.egg_info, safe) +from . import bdist_egg; bdist_egg.write_safety_flag(cmd.egg_info, safe) -- assignee: