classification
Title: 2to3 does not convert __builtins__.file
Type: behavior Stage:
Components: 2to3 (2.x to 3.0 conversion tool) Versions: Python 3.2, Python 3.1, Python 3.0, Python 2.7, Python 2.6
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: joe.amenta (1)
Priority: Keywords

Created on 2009-10-17 21:29 by joe.amenta, last changed 2009-10-18 04:10 by joe.amenta.

Messages (1)
msg94190 - (view) Author: Joe Amenta (joe.amenta) Date: 2009-10-17 21:29
Step to reproduce:

$ echo 'file("/some/file")' | python `which 2to3` -

(replace python with whichever python executable version you wish to
use, e.g. ~/python-trunk/python or /usr/local/bin/python3.2 )

Expected result:
Anything referring to the fact that the "file" type no longer exists in
python 3.x, whether it be a warning or a refactoring.

Actual result:
RefactoringTool: No files need to be modified.

Just a report for now, I don't have the time to write a patch.
History
Date User Action Args
2009-10-18 04:10:19joe.amentasettype: behavior
2009-10-17 21:29:37joe.amentacreate