[issue2894] 2to3 discards comments before import statements

2008-07-19 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Duplicate of #3334. -- resolution: -> duplicate status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue2894] 2to3 discards comments before import statements

2008-07-18 Thread Nick Edds
Nick Edds <[EMAIL PROTECTED]> added the comment: Yeah sorry. I can't commit changes, so I have the diff in the other issue but it has not yet been committed. Here it is again for redundancy. -- keywords: +patch Added file: http://bugs.python.org/file10938/fix_import.diff ___

[issue2894] 2to3 discards comments before import statements

2008-07-18 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I still this problem with the latest version of 2to3. -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> __

[issue2894] 2to3 discards comments before import statements

2008-07-18 Thread Nick Edds
Nick Edds <[EMAIL PROTECTED]> added the comment: This seems to have been the same problem that was causing whitespace to get lost before some imports. I believe the fix_import change I provided in that issue, issue 3334, also corrects this problem. -- nosy: +nedds __

[issue2894] 2to3 discards comments before import statements

2008-05-16 Thread Georg Brandl
New submission from Georg Brandl <[EMAIL PROTECTED]>: I got this diff from Tools/freeze/freeze.py: - - -# Import the freeze-private modules - -import checkextensions -import makeconfig -import makefreeze -import makemakefile -import parsesetup -import bkfile +from . import checkextensions +from