[issue2428] 2to3 deletes # comments before from __future__ import with_statement

2008-03-19 Thread Bruce Frederiksen

New submission from Bruce Frederiksen [EMAIL PROTECTED]:

2to3, svn rev 61623.  To reproduce this error:

$ cat !  foobar.py
# line 1
# line 2

from __future__ import with_statement
import sys
!
$ 2to3 -w foobar.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: ws_comma
--- foobar.py (original)
+++ foobar.py (refactored)
@@ -1,5 +1,2 @@
-# line 1
-# line 2
 
-from __future__ import with_statement
 import sys
RefactoringTool: Files that were modified:
RefactoringTool: foobar.py
$ cat foobar.py

import sys
$

--
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
messages: 64098
nosy: collinwinter, dangyogi
severity: normal
status: open
title: 2to3 deletes # comments before from __future__ import with_statement
type: behavior
versions: Python 2.6

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2428
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2428] 2to3 deletes # comments before from __future__ import with_statement

2008-03-19 Thread David Wolever

Changes by David Wolever [EMAIL PROTECTED]:


--
assignee: collinwinter - David Wolever
nosy: +David Wolever

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2428
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2428] 2to3 deletes # comments before from __future__ import with_statement

2008-03-19 Thread David Wolever

David Wolever [EMAIL PROTECTED] added the comment:

Ok, fixed in r61664.

--
status: open - closed

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2428
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com